Skip to content

Commit

Permalink
Merge pull request #43 from xenadmin/patch-1
Browse files Browse the repository at this point in the history
Make sure ntp service is running and watching conf
  • Loading branch information
myii authored Oct 18, 2019
2 parents 70638f1 + 995d0d7 commit dd450fa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ntp/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
ntp:
pkg.installed:
- name: {{ ntp.client }}
service.running:
- name: {{ ntp.service }}
- enable: True
- require:
- pkg: {{ ntp.client }}
{% set ntp_conf_src = salt['pillar.get']('ntp:ntp_conf', 'salt://ntp/ntp.conf') -%}
Expand All @@ -16,5 +21,6 @@ ntp_conf:
- source: {{ ntp_conf_src }}
- require:
- pkg: {{ ntp.client }}
- watch_in:
- service: {{ ntp.service }}
{%- endif %}

0 comments on commit dd450fa

Please sign in to comment.