Use separate AMQP vhost for tests
This commit is contained in:
parent
8396a0788d
commit
e8da0baf70
1 changed files with 8 additions and 0 deletions
|
@ -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) %}
|
||||
|
|
Loading…
Reference in a new issue