Add root hiera config for the puppetmaster.
Change-Id: I4e9358f083a9a1938a7080610cc5964834889593
This commit is contained in:
parent
6cd001f3de
commit
a3953c334f
8
modules/openstack_project/files/puppetmaster/hiera.yaml
Normal file
8
modules/openstack_project/files/puppetmaster/hiera.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
:hierarchy:
|
||||
- %{operatingsystem}
|
||||
- common
|
||||
:backends:
|
||||
- yaml
|
||||
:yaml:
|
||||
:datadir: '/etc/puppet/hieradata/%{environment}'
|
@ -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']
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user