From afe1f6217db201bebcc92402ba79abfd90186ffd Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mon, 18 Aug 2014 12:46:19 +0200 Subject: [PATCH] Move the pkgdb-sync-bugzilla.cron to pkgdb02 and ansible --- roles/pkgdb2/tasks/main.yml | 9 +++++++++ roles/pkgdb2/templates/pkgdb-sync-bugzilla.cron | 4 ++++ 2 files changed, 13 insertions(+) create mode 100644 roles/pkgdb2/templates/pkgdb-sync-bugzilla.cron diff --git a/roles/pkgdb2/tasks/main.yml b/roles/pkgdb2/tasks/main.yml index a01f76f99d..a67284185c 100644 --- a/roles/pkgdb2/tasks/main.yml +++ b/roles/pkgdb2/tasks/main.yml @@ -48,6 +48,15 @@ notify: - restart apache +- name: Install the pkgdb <-> bugzilla sync script + when: inventory_hostname.startswith('pkgdb02') + template: src={{ item.file }} + dest={{ item.location }}/{{ item.file }} + with_items: + - { file: 'pkgdb-sync-bugzilla.cron', location: /etc/cron.d } + tags: + - config + - name: set sebooleans so pkgdb2 can talk to the db action: seboolean name=httpd_can_network_connect_db state=true diff --git a/roles/pkgdb2/templates/pkgdb-sync-bugzilla.cron b/roles/pkgdb2/templates/pkgdb-sync-bugzilla.cron new file mode 100644 index 0000000000..43ea1c2a41 --- /dev/null +++ b/roles/pkgdb2/templates/pkgdb-sync-bugzilla.cron @@ -0,0 +1,4 @@ +# Synchronize pkgdb with bugzilla +# +*/10 * * * * root PKGDB2_CONFIG=/etc/pkgdb2/pkgdb2.cfg /usr/bin/pkgdb-sync-bugzilla +