Skip to content

Instantly share code, notes, and snippets.

@aikar

aikar/init.sls Secret

Created March 1, 2015 17:53
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 aikar/e338dfdc63880bd4c7de to your computer and use it in GitHub Desktop.
Save aikar/e338dfdc63880bd4c7de to your computer and use it in GitHub Desktop.
hosts_database:
host.present:
- name: database
- ip: 192.168.50.4 # for vagrant when not in master mode - Salt uses last on list
{% for server, addrs in salt['mine.get'](pillar['role_db'] + '*', 'network.ip_addrs').items() %}
- ip: {{ addrs[0] }}
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment