rabbit/queue: Tag all tasks with fedora-messaging tag
This commit is contained in:
parent
5dcaf115ff
commit
8b0df497f4
1 changed files with 6 additions and 0 deletions
|
@ -26,6 +26,7 @@
|
||||||
that:
|
that:
|
||||||
- "queue_name.startswith(username)"
|
- "queue_name.startswith(username)"
|
||||||
fail_msg: "Your queue name must be prefixed with your username"
|
fail_msg: "Your queue name must be prefixed with your username"
|
||||||
|
tags: fedora-messaging
|
||||||
|
|
||||||
# See https://www.rabbitmq.com/access-control.html#permissions for details on
|
# See https://www.rabbitmq.com/access-control.html#permissions for details on
|
||||||
# the RabbitMQ permissions configuration.
|
# the RabbitMQ permissions configuration.
|
||||||
|
@ -41,6 +42,7 @@
|
||||||
write_priv: "^(amq\\.topic)|({{ username }}.*){% for queue in write_queues|default([]) %}|({{ queue }}.*){% endfor %}$"
|
write_priv: "^(amq\\.topic)|({{ username }}.*){% for queue in write_queues|default([]) %}|({{ queue }}.*){% endfor %}$"
|
||||||
configure_priv: "^$" # No configuration permissions
|
configure_priv: "^$" # No configuration permissions
|
||||||
state: present
|
state: present
|
||||||
|
tags: fedora-messaging
|
||||||
|
|
||||||
- name: Create the {{ queue_name }} queue in RabbitMQ
|
- name: Create the {{ queue_name }} queue in RabbitMQ
|
||||||
delegate_to: "{{ rabbitmq_server }}"
|
delegate_to: "{{ rabbitmq_server }}"
|
||||||
|
@ -53,6 +55,7 @@
|
||||||
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) }}"
|
||||||
|
tags: fedora-messaging
|
||||||
|
|
||||||
- name: Bind the {{ queue_name }} queue to the topic exchange
|
- name: Bind the {{ queue_name }} queue to the topic exchange
|
||||||
delegate_to: "{{ rabbitmq_server }}"
|
delegate_to: "{{ rabbitmq_server }}"
|
||||||
|
@ -66,6 +69,7 @@
|
||||||
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) }}"
|
||||||
loop: "{{ routing_keys }}"
|
loop: "{{ routing_keys }}"
|
||||||
|
tags: fedora-messaging
|
||||||
|
|
||||||
- name: Monitor the {{ queue_name }} queue in Nagios (NRPE)
|
- name: Monitor the {{ queue_name }} queue in Nagios (NRPE)
|
||||||
when: thresholds and env == "production"
|
when: thresholds and env == "production"
|
||||||
|
@ -77,6 +81,7 @@
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
notify: restart nrpe on rabbitmq
|
notify: restart nrpe on rabbitmq
|
||||||
|
tags: fedora-messaging
|
||||||
|
|
||||||
- name: Monitor the {{ queue_name }} queue in Nagios
|
- name: Monitor the {{ queue_name }} queue in Nagios
|
||||||
when: thresholds and env == "production"
|
when: thresholds and env == "production"
|
||||||
|
@ -85,3 +90,4 @@
|
||||||
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
|
||||||
|
tags: fedora-messaging
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue