Merge "Dynamically schedule for updatepuppet master cron job"
This commit is contained in:
commit
8e21ec389c
@ -7,6 +7,12 @@ class openstack_project::puppetmaster (
|
|||||||
$root_rsa_key = 'xxx',
|
$root_rsa_key = 'xxx',
|
||||||
$puppetdb = true,
|
$puppetdb = true,
|
||||||
$puppetdb_server = 'puppetdb.openstack.org',
|
$puppetdb_server = 'puppetdb.openstack.org',
|
||||||
|
$puppetmaster_update_cron_interval = { min => '*/15',
|
||||||
|
hour => '*',
|
||||||
|
day => '*',
|
||||||
|
month => '*',
|
||||||
|
weekday => '*',
|
||||||
|
},
|
||||||
) {
|
) {
|
||||||
include logrotate
|
include logrotate
|
||||||
include openstack_project::params
|
include openstack_project::params
|
||||||
@ -25,7 +31,11 @@ class openstack_project::puppetmaster (
|
|||||||
|
|
||||||
cron { 'updatepuppetmaster':
|
cron { 'updatepuppetmaster':
|
||||||
user => 'root',
|
user => 'root',
|
||||||
minute => '*/15',
|
minute => $puppetmaster_update_cron_interval[min],
|
||||||
|
hour => $puppetmaster_update_cron_interval[hour],
|
||||||
|
monthday => $puppetmaster_update_cron_interval[day],
|
||||||
|
month => $puppetmaster_update_cron_interval[month],
|
||||||
|
weekday => $puppetmaster_update_cron_interval[weekday],
|
||||||
command => 'flock -n /var/run/puppet/puppet_run_all.lock bash /opt/system-config/production/run_all.sh',
|
command => 'flock -n /var/run/puppet/puppet_run_all.lock bash /opt/system-config/production/run_all.sh',
|
||||||
environment => 'PATH=/var/lib/gems/1.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin',
|
environment => 'PATH=/var/lib/gems/1.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin',
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user