Add root hiera config for the puppetmaster.

Change-Id: I4e9358f083a9a1938a7080610cc5964834889593
This commit is contained in:
Monty Taylor 2012-07-24 11:11:31 -05:00
parent 6cd001f3de
commit a3953c334f
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,8 @@
---
:hierarchy:
- %{operatingsystem}
- common
:backends:
- yaml
:yaml:
:datadir: '/etc/puppet/hieradata/%{environment}'

View File

@ -8,4 +8,14 @@ class openstack_project::puppetmaster {
command => 'sleep $((RANDOM\%600)) && cd /opt/openstack-ci-puppet/production && /usr/bin/git pull -q && /bin/bash install_modules.sh',
environment => "PATH=/var/lib/gems/1.8/bin:/usr/bin:/bin:/usr/sbin:/sbin",
}
file { '/etc/puppet/hiera.yaml':
owner => 'root',
group => 'root',
mode => 555,
ensure => 'present',
source => 'puppet:///modules/openstack_project/puppetmaster/hiera.yaml',
replace => 'true',
require => Class['openstack_project::server']
}
}