Manage hiera.yaml on all hosts
When puppet apply runs on a host, it will need a hiera.yaml to inform lookups with. Manage that in base.pp. Change-Id: I61603bf2f8e1c11640c744a20377790cd217356d
This commit is contained in:
parent
05db6ccd2d
commit
4251332e97
@ -69,16 +69,6 @@ class openstack_project::puppetmaster (
|
||||
environment => 'PATH=/var/lib/gems/1.8/bin:/usr/bin:/bin:/usr/sbin:/sbin',
|
||||
}
|
||||
|
||||
file { '/etc/puppet/hiera.yaml':
|
||||
ensure => present,
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0555',
|
||||
source => 'puppet:///modules/openstack_project/puppetmaster/hiera.yaml',
|
||||
replace => true,
|
||||
require => Class['openstack_project::server'],
|
||||
}
|
||||
|
||||
file { '/var/lib/puppet/reports':
|
||||
ensure => directory,
|
||||
owner => 'puppet',
|
||||
|
@ -405,6 +405,15 @@ class openstack_project::template (
|
||||
service { 'puppet':
|
||||
ensure => stopped,
|
||||
}
|
||||
|
||||
file { '/etc/puppet/hiera.yaml':
|
||||
ensure => present,
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0555',
|
||||
source => 'puppet:///modules/openstack_project/puppet/hiera.yaml',
|
||||
replace => true,
|
||||
}
|
||||
###########################################################
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user