Skip to content

Instantly share code, notes, and snippets.

@whytewolf
Created November 6, 2015 00:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whytewolf/0c8945e7fa34d8bacfe6 to your computer and use it in GitHub Desktop.
Save whytewolf/0c8945e7fa34d8bacfe6 to your computer and use it in GitHub Desktop.
{% for user in salt['pillar.get']('rabbitmq:users') %}
config_rabbitmq_{{ user['username']}}:
cmd.run:
- name: |
rabbitmqctl -n rabbit@{{ HOSTNAME }} user_add {{ user['username'] }} {{ user['password'] }}
- cwd: /
- shell: /bin/bash
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment