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) %}