Sha256: 0a116fca02a7240106d5986c630a214598de66a96e733fd6359fb27fe31b60d4

Contents?: true

Size: 1.01 KB

Versions: 5

Compression:

Stored size: 1.01 KB

Contents

test_name 'Install Puppet Agent Packages' do
  agents.each do |agent|
    path = ENV.fetch('DEV_BUILD_PATH', nil)
    if path
      raise ArgumentError, "The path #{path} does not exist" unless File.exist?(path)

      basename = File.basename(path)
      scp_to(agent, path, basename)

      # configure locations for ruby, puppet, config files, etc
      add_aio_defaults_on(agent)
      agent.install_package(basename)
    else
      opts = {
        nightly_builds_url: ENV.fetch('NIGHTLY_BUILDS_URL', nil),
        dev_builds_url: ENV.fetch('DEV_BUILDS_URL', nil),
        puppet_agent_version: ENV.fetch('SHA', nil),
        puppet_collection: ENV.fetch('RELEASE_STREAM', nil),
      }

      install_puppet_agent_on(hosts, opts)
    end
  end

  # make sure install is sane, beaker has already added puppet and ruby
  # to PATH in ~/.ssh/environment
  agents.each do |agent| # rubocop:disable Style/CombinableLoops
    on agent, puppet('--version')
    ruby = ruby_command(agent)
    on agent, "#{ruby} --version"
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
beaker-puppet-4.1.1 setup/aio/010_Install_Puppet_Agent.rb
beaker-puppet-4.1.0 setup/aio/010_Install_Puppet_Agent.rb
beaker-puppet-4.0.0 setup/aio/010_Install_Puppet_Agent.rb
beaker-puppet-3.0.1 setup/aio/010_Install_Puppet_Agent.rb
beaker-puppet-3.0.0 setup/aio/010_Install_Puppet_Agent.rb