Use separate AMQP vhost for tests

This commit is contained in:
Jan Dittberner 2016-01-31 10:42:45 +00:00
parent 8396a0788d
commit e8da0baf70

View file

@ -5,6 +5,10 @@ gnuviechadmin-queue-vhost:
rabbitmq_vhost.present:
- name: {{ salt['pillar.get']('gnuviechadmin:queues:vhost') }}
gnuviechadmin_test-queue-vhost:
rabbitmq_vhost.present:
- name: {{ "%s_test" % salt['pillar.get']('gnuviechadmin:queues:vhost') }}
{% for user in salt['pillar.get']('gnuviechadmin:queues:users') %}
gnuviechadmin-queue-user-{{ user }}:
rabbitmq_user.present:
@ -17,6 +21,10 @@ gnuviechadmin-queue-user-{{ user }}:
- {{ perms[0] }}
- {{ perms[1] }}
- {{ perms[2] }}
- {{ vhost + "_test" }}:
- {{ perms[0] }}
- {{ perms[1] }}
- {{ perms[2] }}
{% endfor %}
{% endif %}
{% if salt['pillar.get']('gnuviechadmin:queues:users:%s:tags' % user) %}