Advertisement
Guest User

Untitled

a guest
Oct 9th, 2014
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. # Salt Controlled Hosts File
  2.  
  3. {% for host, hostinfo in salt['mine.get']('*', 'network.interfaces').items() %}
  4. {{ hostinfo['eth0']['inet'][0]['address'] if hostinfo['eth0'].has_key('inet') else hostinfo['br0']['inet'][0]['address'] }} {{ host }}
  5. {% endfor %}
  6.  
  7. 10.100.0.152 zabbix
  8. 10.100.0.120 salt
  9. 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
  10. ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement