Browse Source

fix(suse): preserve pool.conf

The file is managed by RPM - if purging is enabled, idempotency would
break after package updates place the Salt removed file back. Hence
exclude this file by managing it if it exists. In the default formula
configuration it is not included anyways.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
pull/40/head
Georg Pfuetzenreuter 1 month ago
parent
commit
14939e416d
No account linked to committer's email address
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      chrony/config/file.sls

+ 10
- 0
chrony/config/file.sls View File

- clean: True - clean: True
- require: - require:
- sls: {{ sls_package_install }} - sls: {{ sls_package_install }}
- file: chrony-config-file-file-managed
- file: chrony-config-file-pool-file-managed
{%- endif %} {%- endif %}


chrony-config-file-file-managed: chrony-config-file-file-managed:
chrony: {{ chrony|json }} chrony: {{ chrony|json }}
- require: - require:
- sls: {{ sls_package_install }} - sls: {{ sls_package_install }}

chrony-config-file-pool-file-managed:
file.managed:
- name: {{ chrony.confd }}/pool.conf
- create: False
- replace: False
- require:
- sls: {{ sls_package_install }}

Loading…
Cancel
Save