Jan Dittberner
6a8997e950
This commit adds an initial Vagrant and Saltstack setup that reuses the same configuration as that of the gva repository. The LDAP server itself is not configured yet.
31 lines
1,020 B
Plaintext
31 lines
1,020 B
Plaintext
include:
|
|
- rabbitmq-server
|
|
|
|
gnuviechadmin-queue-vhost:
|
|
rabbitmq_vhost.present:
|
|
- name: {{ salt['pillar.get']('gnuviechadmin:queues:vhost') }}
|
|
|
|
{% for user in salt['pillar.get']('gnuviechadmin:queues:users') %}
|
|
gnuviechadmin-queue-user-{{ user }}:
|
|
rabbitmq_user.present:
|
|
- name: {{ user }}
|
|
- password: {{ salt['pillar.get']('gnuviechadmin:queues:users:%s:password' % user) }}
|
|
{% if salt['pillar.get']('gnuviechadmin:queues:users:%s:perms' % user) %}
|
|
- perms:
|
|
{% for vhost, perms in salt['pillar.get']('gnuviechadmin:queues:users:%s:perms' % user).iteritems() %}
|
|
- {{ vhost }}:
|
|
- {{ perms[0] }}
|
|
- {{ perms[1] }}
|
|
- {{ perms[2] }}
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% if salt['pillar.get']('gnuviechadmin:queues:users:%s:tags' % user) %}
|
|
- tags:
|
|
{% for tag in salt['pillar.get']('gnuviechadmin:queues:users:%s:tags' % user) %}
|
|
- {{ tag }}
|
|
{% endfor %}
|
|
{% endif %}
|
|
- require:
|
|
- rabbitmq_vhost: {{ salt['pillar.get']('gnuviechadmin:queues:vhost') }}
|
|
{% endfor %}
|