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:
Spencer Krum 2015-03-16 14:10:39 -07:00 committed by Spencer Krum
parent 05db6ccd2d
commit 4251332e97
3 changed files with 9 additions and 10 deletions

View File

@ -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',

View File

@ -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,
}
###########################################################
}