Stop running puppet from puppetmaster
Bridge can run puppet on the remote hosts. Stop running on puppetmaster so that we can run from bridge. Put it in the disabled group so that we don't try to run puppet on it from bridge. Change-Id: Ibcfa7e902c07c55e3a84f8232a11792c5f7d80e9
This commit is contained in:
parent
0d1f235fce
commit
33c0756ff8
@ -33,14 +33,7 @@ class openstack_project::puppetmaster (
|
|||||||
}
|
}
|
||||||
|
|
||||||
cron { 'updatecloudlauncher':
|
cron { 'updatecloudlauncher':
|
||||||
user => 'root',
|
ensure => absent,
|
||||||
minute => '0',
|
|
||||||
hour => '*/1',
|
|
||||||
monthday => '*',
|
|
||||||
month => '*',
|
|
||||||
weekday => '*',
|
|
||||||
command => 'flock -n /var/run/puppet/puppet_run_cloud_launcher.lock bash /opt/system-config/production/run_cloud_launcher.sh >> /var/log/puppet_run_cloud_launcher_cron.log 2>&1',
|
|
||||||
environment => 'PATH=/var/lib/gems/1.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin',
|
|
||||||
}
|
}
|
||||||
|
|
||||||
logrotate::file { 'updatecloudlauncher':
|
logrotate::file { 'updatecloudlauncher':
|
||||||
@ -72,14 +65,7 @@ class openstack_project::puppetmaster (
|
|||||||
}
|
}
|
||||||
|
|
||||||
cron { 'updatepuppetmaster':
|
cron { 'updatepuppetmaster':
|
||||||
user => 'root',
|
ensure => absent,
|
||||||
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 >> /var/log/puppet_run_all_cron.log 2>&1',
|
|
||||||
environment => 'PATH=/var/lib/gems/1.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin',
|
|
||||||
}
|
}
|
||||||
|
|
||||||
logrotate::file { 'updatepuppetmaster':
|
logrotate::file { 'updatepuppetmaster':
|
||||||
@ -111,19 +97,11 @@ class openstack_project::puppetmaster (
|
|||||||
}
|
}
|
||||||
|
|
||||||
cron { 'deleteoldreports':
|
cron { 'deleteoldreports':
|
||||||
user => 'root',
|
ensure => absent,
|
||||||
hour => '3',
|
|
||||||
minute => '0',
|
|
||||||
command => 'sleep $((RANDOM\%600)) && find /var/lib/puppet/reports -name \'*.yaml\' -mtime +5 -execdir rm {} \;',
|
|
||||||
environment => 'PATH=/var/lib/gems/1.8/bin:/usr/bin:/bin:/usr/sbin:/sbin',
|
|
||||||
}
|
}
|
||||||
|
|
||||||
cron { 'deleteoldreports-json':
|
cron { 'deleteoldreports-json':
|
||||||
user => 'root',
|
ensure => absent,
|
||||||
hour => '3',
|
|
||||||
minute => '0',
|
|
||||||
command => 'sleep $((RANDOM\%600)) && find /var/lib/puppet/reports -name \'*.json\' -mtime +5 -execdir rm {} \;',
|
|
||||||
environment => 'PATH=/var/lib/gems/1.8/bin:/usr/bin:/bin:/usr/sbin:/sbin',
|
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/etc/puppet/hieradata':
|
file { '/etc/puppet/hieradata':
|
||||||
@ -346,11 +324,7 @@ class openstack_project::puppetmaster (
|
|||||||
}
|
}
|
||||||
|
|
||||||
cron { 'expandgroups':
|
cron { 'expandgroups':
|
||||||
user => 'root',
|
ensure => absent,
|
||||||
minute => 0,
|
|
||||||
hour => 4,
|
|
||||||
command => '/usr/local/bin/expand-groups.sh >> /var/log/expand_groups.log 2>&1',
|
|
||||||
environment => 'PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin',
|
|
||||||
}
|
}
|
||||||
|
|
||||||
logrotate::file { 'expandgroups':
|
logrotate::file { 'expandgroups':
|
||||||
|
@ -6,7 +6,7 @@ groups:
|
|||||||
afsdb: inventory_hostname|regex_match('afsdb.*openstack.org')
|
afsdb: inventory_hostname|regex_match('afsdb.*openstack.org')
|
||||||
cacti: inventory_hostname|regex_match('cacti\d+\.openstack\.org')
|
cacti: inventory_hostname|regex_match('cacti\d+\.openstack\.org')
|
||||||
ci-backup: inventory_hostname|regex_match('backup\d+.*\ci\.openstack\.org')
|
ci-backup: inventory_hostname|regex_match('backup\d+.*\ci\.openstack\.org')
|
||||||
disabled: inventory_hostname.startswith('backup') or inventory_hostname.startswith('wiki')
|
disabled: inventory_hostname.startswith('backup') or inventory_hostname.startswith('wiki') or inventory_hostname.startswith('puppetmaster')
|
||||||
eavesdrop: inventory_hostname.startswith('eavesdrop')
|
eavesdrop: inventory_hostname.startswith('eavesdrop')
|
||||||
elasticsearch: inventory_hostname|regex_match('elasticsearch0[1-7]\.openstack\.org')
|
elasticsearch: inventory_hostname|regex_match('elasticsearch0[1-7]\.openstack\.org')
|
||||||
ethercalc: inventory_hostname.startswith('ethercalc')
|
ethercalc: inventory_hostname.startswith('ethercalc')
|
||||||
|
Loading…
Reference in New Issue
Block a user