Advertisement
Guest User

Untitled

a guest
Jan 7th, 2014
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. salt:/srv/salt/ntp# less init.sls
  2. ntp:
  3. pkg:
  4. - installed
  5. - name: ntp
  6. service:
  7. - running
  8. - watch:
  9. - pkg: ntp
  10. - file: /etc/ntp.conf
  11.  
  12. /etc/ntp.conf:
  13. file:
  14. - managed
  15. - user: root
  16. - group: root
  17. - mode: 644
  18. {% if grains['os'] == 'Centos' %}
  19. - source: salt://ntp/ubuntu-ntp.conf
  20. {% elif grains['os'] == 'Ubuntu' %}
  21. - source: salt://ntp/centos-ntp.conf
  22. {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement