release-monitoring: Create only rabbitmq user for Anitya
Signed-off-by: Michal Konečný <mkonecny@redhat.com>
This commit is contained in:
parent
b05b514f07
commit
f14027a1fa
1 changed files with 25 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue