Advertisement
Guest User

Untitled

a guest
Aug 25th, 2015
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. # top.sls
  2. base:
  3. '*':
  4. - zones
  5. - logserver
  6.  
  7. # zone.sls
  8. {% if grains['ipv4'] == '192.168.0.*' %}
  9. zone: intranet
  10. {% elif grains['ipv4'] == '192.168.1.*' %}
  11. zone: dmz
  12. {% endif %}
  13.  
  14. # logserver.sls
  15. {% if pillar['zone'] == 'intranet' %}
  16. syslog_host: 192.168.0.3
  17. {% elif pillar['zone'] == 'dmz' %}
  18. syslog_host: 192.168.1.3
  19. {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement