summaryrefslogtreecommitdiffstats
path: root/src/tests/salt-test-server/salt/ntp.sls
blob: 66434ffe7a2df69554163037189adab44b40eb5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
UTC:
  timezone.system

ntp_daemon:
    # Make sure ntp is installed and running
    pkg:
{% if grains['os'] == 'CentOS' or grains['os'] == 'Ubuntu' or grains['os'] == 'Debian' %}
        - name: ntp
{% elif grains['os'] == 'FreeBSD' %}
        - name: openntpd
{% endif %}
        - installed

# Make sure ntpd is running and enabled (start on boot)
{% if grains['os'] == 'CentOS' or grains['os'] == 'FreeBSD' %}
ntpd:
{% elif grains['os'] == 'Ubuntu' or grains['os'] == 'Debian' %}
ntp:
{% endif %}
    service:
        - running
        - enable: True