Koschei: create RabbitMQ queue
This commit is contained in:
parent
9f933fddee
commit
3ff6a8502f
3 changed files with 9 additions and 2 deletions
|
@ -11,8 +11,13 @@
|
||||||
- /srv/web/infra/ansible/roles/openshift-apps/koschei/vars/{{ env }}.yml
|
- /srv/web/infra/ansible/roles/openshift-apps/koschei/vars/{{ env }}.yml
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- role: rabbit/user
|
- role: rabbit/queue
|
||||||
username: "{{ app }}{{ env_suffix }}"
|
username: "{{ app }}{{ env_suffix }}"
|
||||||
|
queue_name: "{{ app }}{{ env_suffix }}"
|
||||||
|
routing_keys:
|
||||||
|
- org.fedoraproject.stg.buildsys.tag
|
||||||
|
- org.fedoraproject.stg.buildsys.task.state.change
|
||||||
|
message_ttl: 60000
|
||||||
|
|
||||||
- openshift/project
|
- openshift/project
|
||||||
|
|
||||||
|
|
|
@ -3,5 +3,6 @@ vhost: /pubsub
|
||||||
default_exchange: amq.topic
|
default_exchange: amq.topic
|
||||||
routing_keys:
|
routing_keys:
|
||||||
- "#"
|
- "#"
|
||||||
|
message_ttl: forever
|
||||||
thresholds: false
|
thresholds: false
|
||||||
nagios_server: noc01.phx2.fedoraproject.org
|
nagios_server: noc01.phx2.fedoraproject.org
|
||||||
|
|
|
@ -49,6 +49,7 @@
|
||||||
vhost: "{{ vhost }}"
|
vhost: "{{ vhost }}"
|
||||||
auto_delete: no
|
auto_delete: no
|
||||||
durable: yes
|
durable: yes
|
||||||
|
message_ttl: "{{ message_ttl }}"
|
||||||
state: present
|
state: present
|
||||||
login_user: admin
|
login_user: admin
|
||||||
login_password: "{{ (env == 'production')|ternary(rabbitmq_admin_password_production, rabbitmq_admin_password_staging) }}"
|
login_password: "{{ (env == 'production')|ternary(rabbitmq_admin_password_production, rabbitmq_admin_password_staging) }}"
|
||||||
|
@ -83,4 +84,4 @@
|
||||||
template:
|
template:
|
||||||
src: nagios.cfg.j2
|
src: nagios.cfg.j2
|
||||||
dest: /etc/nagios/services/rabbitmq-queue-{{ queue_name }}.cfg
|
dest: /etc/nagios/services/rabbitmq-queue-{{ queue_name }}.cfg
|
||||||
notify: restart nagios on noc
|
notify: restart nagios on noc
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue