release-monitoring: Create only rabbitmq user for Anitya

Signed-off-by: Michal Konečný <mkonecny@redhat.com>
This commit is contained in:
Michal Konečný 2019-02-28 13:06:05 +01:00
parent b05b514f07
commit f14027a1fa

View file

@ -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