Saltstack Official Chrony Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

map.jinja 620B

1234567891011121314151617181920
  1. {## start with defaults from defaults.yaml ##}
  2. {% import_yaml "chrony/defaults.yaml" as defaults %}
  3. {% import_yaml "chrony/osmap.yaml" as osmap %}
  4. {% set chrony = salt['grains.filter_by'](
  5. defaults,
  6. merge=salt['grains.filter_by'](
  7. osmap,
  8. grain='os_family',
  9. merge=salt['pillar.get']('chrony', {}),
  10. ),
  11. base='chrony'
  12. ) %}
  13. -{# Debian distros check /etc/default/rcS to determine UTC setting #}
  14. -{% if grains['os_family'] == "Debian" %}
  15. - {% if salt['cmd.run']('grep UTC=no /etc/default/rcS') %}
  16. - {% do chrony['otherparams'].remove('rtconutc') %}
  17. - {% endif %}
  18. -{% endif %}