Skip to content
Snippets Groups Projects
Commit b0424541 authored by Jan Philipp Timme's avatar Jan Philipp Timme
Browse files

Fix order, remove ntp for everyone if present

parent 7072d2ed
No related branches found
No related tags found
No related merge requests found
{% from "hshbase/map.jinja" import hshbase with context %} {% from "hshbase/map.jinja" import hshbase with context %}
{% if (grains['os'] == 'Debian' and grains['osmajorrelease'] >= 10) or grains['os'] == 'Ubuntu' and grains['osmajorrelease'] >= 18 %} hsh_disable_legacy_ntp_service:
service.disabled:
ntp: - name: ntp
pkg.purged
/etc/ntp.conf: hsh_remove_legacy_ntp_conf:
file.absent: file.absent:
- name: /etc/ntp.conf
- require: - require:
- pkg: ntp - service:hsh_disable_legacy_ntp_service
hsh_ntp_service_not_running: hsh_purge_legacy_ntp:
service.disabled: pkg.purged:
- name: ntp - name: ntp
- require: - require:
- file: /etc/ntp.conf - file:hsh_remove_legacy_ntp_conf
- pkg: ntp
{% endif %}
hsh_server_timezone: hsh_server_timezone:
timezone.system: timezone.system:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment