summaryrefslogtreecommitdiffstats
path: root/roles/bugzilla2fedmsg/tasks
diff options
context:
space:
mode:
authorRalph Bean <rbean@redhat.com>2014-06-24 14:32:06 +0000
committerRalph Bean <rbean@redhat.com>2014-06-24 14:32:06 +0000
commite3f8c50b234d5be9fc8e20a73999abd290673580 (patch)
tree1d6d327e8c7027bfee292d9a6bfe39e844504e95 /roles/bugzilla2fedmsg/tasks
parentc760b15d9ff3bb50a3fa667e898c74382a3b0a9c (diff)
downloadansible-e3f8c50b234d5be9fc8e20a73999abd290673580.tar.gz
ansible-e3f8c50b234d5be9fc8e20a73999abd290673580.tar.xz
ansible-e3f8c50b234d5be9fc8e20a73999abd290673580.zip
A role for bugzilla2fedmsg.
Diffstat (limited to 'roles/bugzilla2fedmsg/tasks')
-rw-r--r--roles/bugzilla2fedmsg/tasks/main.yml53
1 files changed, 53 insertions, 0 deletions
diff --git a/roles/bugzilla2fedmsg/tasks/main.yml b/roles/bugzilla2fedmsg/tasks/main.yml
new file mode 100644
index 000000000..9f048c3b5
--- /dev/null
+++ b/roles/bugzilla2fedmsg/tasks/main.yml
@@ -0,0 +1,53 @@
+---
+# Setup a fedmsg-hub
+
+- name: install needed packages
+ yum: pkg={{ item }} state=installed
+ with_items:
+ - python-moksha-hub
+ - python-bugzilla2fedmsg
+ - python-twisted-words
+ tags:
+ - packages
+
+- name: Copy a custom moksha systemd service file
+ copy: >
+ src=moksha-hub.service
+ dest=/usr/lib/systemd/system/fedmsg-hub.service
+ notify:
+ - restart moksha-hub
+
+- name: Copy the configuration for bugzilla2fedmsg over
+ template: >
+ src=bugzilla2fedmsg.ini
+ dest=/etc/bugzilla2fedmsg.ini
+ owner=fedmsg
+ group=fedmsg
+ mode=0640
+ notify:
+ - restart moksha-hub
+
+- name: Copy in the staging certificates
+ copy: >
+ src="{{ private }}/files/bugzilla2fedmsg/{{ item }}"
+ dest="/etc/pki/fedmsg/{{ item }}"
+ with_items:
+ - fedora.devel.engineering.redhat.com.crt
+ - fedora.devel.engineering.redhat.com.key
+ when: env == 'staging'
+ notify:
+ - restart moksha-hub
+
+- name: Copy in the production certificates
+ copy: >
+ src="{{ private }}/files/bugzilla2fedmsg/{{ item }}"
+ dest="/etc/pki/fedmsg/{{ item }}"
+ with_items:
+ - fuse-fabric-fedoraproject.org.crt
+ - fuse-fabric-fedoraproject.org.key
+ when: env != 'staging'
+ notify:
+ - restart moksha-hub
+
+- name: moksha-hub service
+ service: name=moksha-hub state=started enabled=yes