a3953c334f
Change-Id: I4e9358f083a9a1938a7080610cc5964834889593
22 lines
692 B
Puppet
22 lines
692 B
Puppet
class openstack_project::puppetmaster {
|
|
class { 'openstack_project::server':
|
|
iptables_public_tcp_ports => [8140]
|
|
}
|
|
cron { "updatepuppetmaster":
|
|
user => root,
|
|
minute => "*/15",
|
|
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']
|
|
}
|
|
}
|