Skip to content

Instantly share code, notes, and snippets.

@whytewolf
Last active September 16, 2016 00:24
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/2765f921021297ab7865bde1025a023d to your computer and use it in GitHub Desktop.
Save whytewolf/2765f921021297ab7865bde1025a023d to your computer and use it in GitHub Desktop.
base:
'minionid':
- roles.mongodb-server
'minionid2':
- roles.mongodb-client
roles:
mongodb-client
ntp-client
someotherrole
roles:
mongodb-server
ntp-server
other-role
{% set host,ip = salt.mine.get('I@roles:mongodb-server','network_ipaddrs','compound') %}
not exact and a way over simplification.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment