|
- {## start with defaults from defaults.yaml ##}
- {% import_yaml "chrony/defaults.yaml" as defaults %}
- {% import_yaml "chrony/osmap.yaml" as osmap %}
-
- {% set chrony = salt['grains.filter_by'](
- defaults,
- merge=salt['grains.filter_by'](
- osmap,
- grain='os_family',
- merge=salt['pillar.get']('chrony', {}),
- ),
- base='chrony'
- ) %}
-
- -{# Debian distros check /etc/default/rcS to determine UTC setting #}
- -{% if grains['os_family'] == "Debian" %}
- - {% if salt['cmd.run']('grep UTC=no /etc/default/rcS') %}
- - {% do chrony['otherparams'].remove('rtconutc') %}
- - {% endif %}
- -{% endif %}
|