Saltstack Official Chrony Formula
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

1234567891011121314151617181920
  1. {## start with defaults from defaults.yaml ##}
  2. {% import_yaml slspath+"/defaults.yaml" as defaults %}
  3. {% import_yaml slspath+"/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', output_loglevel='quiet') %}
  16. - {% do chrony['otherparams'].remove('rtconutc') %}
  17. - {% endif %}
  18. -{% endif %}