Skip to content

Instantly share code, notes, and snippets.

@haam3r
Created November 23, 2018 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haam3r/2a4ed6bc9775a47f7d2e189a03af266e to your computer and use it in GitHub Desktop.
Save haam3r/2a4ed6bc9775a47f7d2e189a03af266e to your computer and use it in GitHub Desktop.
{% if salt['pkg.version']('ntp') %}
/etc/ntp.conf:
file.managed:
- source: salt://file/on/master.conf
{% elif salt['pkg.version']('chrony') %}
/etc/chrony.conf:
file.managed:
- source: salt://file/on/master.conf
{% else %}
chrony:
pkg.latest:
- refresh: True
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment