Skip to content

Commit

Permalink
Fix time state to use ntpd in Leap (#1257)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsamis authored Feb 21, 2023
1 parent 88cafff commit d4543a7
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion salt/default/time.sls
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ timezone_setting:

{% if ((grains['osfullname'] == 'SLES') and (grains['osrelease'] == '11.4'))
or ((grains['os_family'] == 'Debian') and (grains['osrelease'] == '10'))
or (grains['osfullname'] == 'Leap')
%}

ntp_pkg:
Expand All @@ -42,6 +41,22 @@ ntp_enable_service:
- name: ntp
- enable: true

{% elif grains['osfullname'] == 'Leap' %}

ntp_pkg:
pkg.installed:
- name: ntp

ntp_conf_file:
file.managed:
- name: /etc/ntp.conf
- source: salt://default/ntp.conf

ntp_enable_service:
service.running:
- name: ntpd
- enable: true

{% else %}

chrony_pkg:
Expand Down

0 comments on commit d4543a7

Please sign in to comment.