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