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 +