From e8da0baf70a6f8a06904ad1a366480a9b22818e9 Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Sun, 31 Jan 2016 10:42:45 +0000 Subject: [PATCH] Use separate AMQP vhost for tests --- roots/gnuviechadmin/queues.sls | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roots/gnuviechadmin/queues.sls b/roots/gnuviechadmin/queues.sls index 5462fb7..10c2a02 100644 --- a/roots/gnuviechadmin/queues.sls +++ b/roots/gnuviechadmin/queues.sls @@ -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) %}