Sha256: 1e4d30b44c767e8bd409bcd210b0e8ffffd7ce6a2d3b5ca2aa3b98edd8039498

Contents?: true

Size: 667 Bytes

Versions: 1

Compression:

Stored size: 667 Bytes

Contents

require 'pe_build/on_machine'
class PEBuild::Cap::RunInstall::POSIX

  extend PEBuild::OnMachine

  def self.run_install(machine, config, archive)

    root = File.join('/vagrant', PEBuild::WORK_DIR)

    cmd_path = []
    cmd_path << root

    cmd_path << archive.installer_dir
    cmd_path << "puppet-enterprise-installer"

    cmd     = File.join(cmd_path)
    answers = File.join(root, 'answers', "#{machine.name}.txt")

    argv = "#{cmd} -a #{answers}"

    on_machine(machine, argv)

    machine.ui.info I18n.t('pebuild.provisioner.pe_bootstrap.scheduling_run')
    machine.communicate.sudo("echo '/opt/puppet/bin/puppet agent -t' | at next minute")
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-pe_build-0.3.0 lib/pe_build/cap/run_install/posix.rb