Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Salt Controlled Hosts File
- {% for host, hostinfo in salt['mine.get']('*', 'network.interfaces').items() %}
- {{ hostinfo['eth0']['inet'][0]['address'] if hostinfo['eth0'].has_key('inet') else hostinfo['br0']['inet'][0]['address'] }} {{ host }}
- {% endfor %}
- 10.100.0.152 zabbix
- 10.100.0.120 salt
- 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
- ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement