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.

25 line
874B

  1. # -*- coding: utf-8 -*-
  2. # vim: ft=jinja
  3. {#- Get the `tplroot` from `tpldir` #}
  4. {%- set tplroot = tpldir.split('/')[0] %}
  5. {#- Start imports as #}
  6. {%- import_yaml tplroot ~ "/defaults.yaml" as default_settings %}
  7. {%- import_yaml tplroot ~ "/osfamilymap.yaml" as osfamilymap %}
  8. {%- import_yaml tplroot ~ "/osmap.yaml" as osmap %}
  9. {%- import_yaml tplroot ~ "/osfingermap.yaml" as osfingermap %}
  10. {%- set defaults = salt['grains.filter_by'](default_settings,
  11. default='chrony',
  12. merge=salt['grains.filter_by'](osfamilymap, grain='os_family',
  13. merge=salt['grains.filter_by'](osmap, grain='os',
  14. merge=salt['grains.filter_by'](osfingermap, grain='osfinger',
  15. merge=salt['pillar.get']('chrony:lookup', default={})
  16. )
  17. )
  18. )
  19. ) %}
  20. {#- Merge the chrony pillar #}
  21. {%- set chrony = salt['pillar.get']('chrony', default=defaults, merge=True) %}