Start running puppet cron on bridge.openstack.org

Puppet cron is no longer being run on puppetmaster (yay!) so start
running it in cron from bridge.

Change-Id: Idc579a2660a5450092544c21a2e9e6cb9688e5f9
This commit is contained in:
Monty Taylor 2018-08-11 07:35:11 -05:00
parent 1b54971705
commit 759015f101
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
4 changed files with 22 additions and 6 deletions

View File

@ -3,12 +3,6 @@
class openstack_project::puppetmaster (
$puppetmaster_clouds,
$root_rsa_key = 'xxx',
$puppetmaster_update_cron_interval = { min => '*/15',
hour => '*',
day => '*',
month => '*',
weekday => '*',
},
) {
include logrotate

View File

@ -3,3 +3,4 @@
- pip3
- install-ansible
- root-keys
- ansible-cron

View File

@ -0,0 +1,6 @@
update_cron_interval:
minute: '*/15'
hour: '*'
day: '*'
month: '*'
weekday: '*'

View File

@ -0,0 +1,15 @@
- name: Ensure directory exists for lock files
file:
state: directory
path: /var/run/ansible
- name: Set up cron job for running run_all.sh
cron:
name: run_all.sh
state: present
job: 'flock -n /var/run/ansible/run_all.lock bash /opt/system-config/run_all.sh >> /var/log/ansible/run_all_cron.log 2>&1'
minute: "{{ update_cron_interval.minute }}"
hour: "{{ update_cron_interval.hour }}"
day: "{{ update_cron_interval.day }}"
month: "{{ update_cron_interval.month }}"
weekday: "{{ update_cron_interval.weekday }}"