-
-
Save aikar/e338dfdc63880bd4c7de to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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