diff --git a/hshbase/time/init.sls b/hshbase/time/init.sls index 8e055942731fd03e24d49004eaffc7af21d90345..1af41bf5267cd01c802f1bc80d7cb8a235aedf64 100644 --- a/hshbase/time/init.sls +++ b/hshbase/time/init.sls @@ -1,23 +1,21 @@ {% from "hshbase/map.jinja" import hshbase with context %} -{% if (grains['os'] == 'Debian' and grains['osmajorrelease'] >= 10) or grains['os'] == 'Ubuntu' and grains['osmajorrelease'] >= 18 %} - -ntp: - pkg.purged +hsh_disable_legacy_ntp_service: + service.disabled: + - name: ntp -/etc/ntp.conf: +hsh_remove_legacy_ntp_conf: file.absent: + - name: /etc/ntp.conf - require: - - pkg: ntp + - service:hsh_disable_legacy_ntp_service -hsh_ntp_service_not_running: - service.disabled: +hsh_purge_legacy_ntp: + pkg.purged: - name: ntp - require: - - file: /etc/ntp.conf - - pkg: ntp + - file:hsh_remove_legacy_ntp_conf -{% endif %} hsh_server_timezone: timezone.system: