diff --git a/playbooks/openshift-apps/release-monitoring.yml b/playbooks/openshift-apps/release-monitoring.yml index 5fd45b5b5a..e726ef6112 100644 --- a/playbooks/openshift-apps/release-monitoring.yml +++ b/playbooks/openshift-apps/release-monitoring.yml @@ -1,3 +1,28 @@ +# Create the RabbitMQ users + +- name: setup RabbitMQ + hosts: rabbitmq[0]:rabbitmq-stg[0] + user: root + gather_facts: False + + vars_files: + - /srv/web/infra/ansible/vars/global.yml + - "/srv/private/ansible/vars.yml" + - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml + + tasks: + - name: Create the RabbitMQ user + rabbitmq_user: + user: "anitya" + vhost: /pubsub + read_priv: "^anitya.*$" + write_priv: "amq.topic" + configure_priv: "^$" + tags: + - config + +# Deploy the app + - name: make the app be real hosts: os-masters-stg[0]:os-masters[0] user: root @@ -9,12 +34,6 @@ - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml roles: - - role: rabbit/queue - username: anitya - queue_name: anitya - routing_keys: - - "#" - - role: openshift/project app: release-monitoring description: release-monitoring