Move hiera_config to main section of puppet.conf

If it is in master instead of main then puppet apply will give a
warning.
This commit is contained in:
Nick Walker 2016-01-06 15:19:06 -08:00
parent 9a876a61e7
commit 508b9cc600

View File

@ -15,9 +15,18 @@ class profile::puppetmaster {
notify => Service['pe-puppetserver'], notify => Service['pe-puppetserver'],
} }
ini_setting { 'puppet.conf hiera_config' : ini_setting { 'puppet.conf hiera_config main section' :
ensure => present, ensure => present,
path => "${::settings::confdir}/puppet.conf", path => "${::settings::confdir}/puppet.conf",
section => 'main',
setting => 'hiera_config',
value => $hiera_yaml,
notify => Service['pe-puppetserver'],
}
ini_setting { 'puppet.conf hiera_config master section' :
ensure => absent,
path => "${::settings::confdir}/puppet.conf",
section => 'master', section => 'master',
setting => 'hiera_config', setting => 'hiera_config',
value => $hiera_yaml, value => $hiera_yaml,