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.

clean.sls 411B

12345678910111213141516
  1. # -*- coding: utf-8 -*-
  2. # vim: ft=sls
  3. {#- Get the `tplroot` from `tpldir` #}
  4. {%- set tplroot = tpldir.split('/')[0] %}
  5. {%- set sls_service_clean = tplroot ~ '.service.clean' %}
  6. {%- from tplroot ~ "/map.jinja" import chrony with context %}
  7. include:
  8. - {{ sls_service_clean }}
  9. chrony-config-clean-file-absent:
  10. file.absent:
  11. - name: {{ chrony.config }}
  12. - require:
  13. - sls: {{ sls_service_clean }}