summaryrefslogtreecommitdiffstats
path: root/roles/bugzilla2fedmsg
diff options
context:
space:
mode:
authorRalph Bean <rbean@redhat.com>2014-07-25 15:59:06 +0000
committerRalph Bean <rbean@redhat.com>2014-07-25 15:59:06 +0000
commitf64f9ea208a03d4ba48b065eea577cfbaa3a16f0 (patch)
tree739c62a770d29f25af7d835cb40beb7a92defb68 /roles/bugzilla2fedmsg
parent9dcc85c283fa10fb035598db8bdf73b7465d07a9 (diff)
downloadansible-f64f9ea208a03d4ba48b065eea577cfbaa3a16f0.tar.gz
ansible-f64f9ea208a03d4ba48b065eea577cfbaa3a16f0.tar.xz
ansible-f64f9ea208a03d4ba48b065eea577cfbaa3a16f0.zip
Revert "Turns out that staging fabric is not going to be accesible from where we sit."
This reverts commit 6f1cc1d3054bfd2a0d94a96ba945bb8f022abe88.
Diffstat (limited to 'roles/bugzilla2fedmsg')
-rw-r--r--roles/bugzilla2fedmsg/tasks/main.yml15
-rw-r--r--roles/bugzilla2fedmsg/templates/bugzilla2fedmsg.ini7
2 files changed, 21 insertions, 1 deletions
diff --git a/roles/bugzilla2fedmsg/tasks/main.yml b/roles/bugzilla2fedmsg/tasks/main.yml
index 32dc65573..8ecfa5cd4 100644
--- a/roles/bugzilla2fedmsg/tasks/main.yml
+++ b/roles/bugzilla2fedmsg/tasks/main.yml
@@ -38,7 +38,19 @@
notify:
- restart moksha-hub
-- name: Copy in the broker certificates
+- name: Copy in the staging certificates
+ copy: >
+ src="{{ private }}/files/bugzilla2fedmsg/{{ item }}"
+ dest="/etc/pki/fedmsg/{{ item }}"
+ mode=0640 owner=fedmsg group=fedmsg
+ 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 }}"
@@ -46,6 +58,7 @@
with_items:
- fuse-fabric-fedoraproject.org.crt
- fuse-fabric-fedoraproject.org.key
+ when: env != 'staging'
notify:
- restart moksha-hub
diff --git a/roles/bugzilla2fedmsg/templates/bugzilla2fedmsg.ini b/roles/bugzilla2fedmsg/templates/bugzilla2fedmsg.ini
index 05082c615..eab2635f1 100644
--- a/roles/bugzilla2fedmsg/templates/bugzilla2fedmsg.ini
+++ b/roles/bugzilla2fedmsg/templates/bugzilla2fedmsg.ini
@@ -15,9 +15,16 @@ bugzilla.username = {{ bugzilla_user }}
bugzilla.password = {{ bugzilla_password }}
# Stomp broker configuration.
+{% if env == 'staging' %}
+stomp_uri = fuse-fabric-01.stg.jboss.org:61617,fuse-fabric-02.stg.jboss.org:61617,fuse-fabric-03.stg.jboss.org:61617
+stomp_ssl_crt = /etc/pki/fedmsg/fedora.devel.engineering.redhat.com.crt
+stomp_ssl_key = /etc/pki/fedmsg/fedora.devel.engineering.redhat.com.key
+{% else %}
stomp_uri = fuse-fabric-01.jboss.org:61617,fuse-fabric-02.jboss.org:61617,fuse-fabric-03.jboss.org:61617
stomp_ssl_crt = /etc/pki/fedmsg/fuse-fabric-fedoraproject.org.crt
stomp_ssl_key = /etc/pki/fedmsg/fuse-fabric-fedoraproject.org.key
+{% endif %}
+
stomp_user = {{ redhat_dmz_broker_username }}
stomp_pass = {{ redhat_dmz_broker_password }}