Sha256: 55f25b4d27c1ed4dbc8110ca8aeecdd7ef9c3e0c00e07b61b587ebd8e9b0064e

Contents?: true

Size: 492 Bytes

Versions: 23

Compression:

Stored size: 492 Bytes

Contents

test_name 'Hosts: create basic puppet.conf' do
  skip_test 'not testing with puppetserver' unless @options['is_puppetserver']
  hosts.each do |host|
    confdir = host.puppet['confdir']
    on host, "mkdir -p #{confdir}"
    puppetconf = File.join(confdir, 'puppet.conf')

    if host['roles'].include?('agent')
      on host, "echo '[agent]' > '#{puppetconf}' && " +
               "echo server=#{master} >> '#{puppetconf}'"
    else
      on host, "touch '#{puppetconf}'"
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
beaker-puppet-1.7.0 setup/git/011_SetMaster.rb
beaker-puppet-1.6.0 setup/git/011_SetMaster.rb
beaker-puppet-1.5.0 setup/git/011_SetMaster.rb
beaker-puppet-1.4.0 setup/git/011_SetMaster.rb
beaker-puppet-1.3.0 setup/git/011_SetMaster.rb
beaker-puppet-1.2.0 setup/git/011_SetMaster.rb
beaker-puppet-1.1.0 setup/git/011_SetMaster.rb
beaker-puppet-1.0.1 setup/git/011_SetMaster.rb
beaker-puppet-1.0.0 setup/git/011_SetMaster.rb
beaker-puppet-0.17.1 setup/git/011_SetMaster.rb
beaker-puppet-0.17.0 setup/git/011_SetMaster.rb
beaker-puppet-0.16.0 setup/git/011_SetMaster.rb
beaker-puppet-0.15.2 setup/git/011_SetMaster.rb
beaker-puppet-0.15.1 setup/git/011_SetMaster.rb
beaker-puppet-0.15.0 setup/git/011_SetMaster.rb
beaker-puppet-0.14.0 setup/git/011_SetMaster.rb
beaker-puppet-0.13.6 setup/git/011_SetMaster.rb
beaker-puppet-0.13.5 setup/git/011_SetMaster.rb
beaker-puppet-0.13.4 setup/git/011_SetMaster.rb
beaker-puppet-0.13.3 setup/git/011_SetMaster.rb