Pārlūkot izejas kodu

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 pirms 1 mēnesi
vecāks
revīzija
14939e416d
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam
1 mainītis faili ar 10 papildinājumiem un 0 dzēšanām
  1. +10
    -0
      chrony/config/file.sls

+ 10
- 0
chrony/config/file.sls Parādīt failu

@@ -17,6 +17,8 @@ chrony-config-conf.d:
- clean: True
- require:
- sls: {{ sls_package_install }}
- file: chrony-config-file-file-managed
- file: chrony-config-file-pool-file-managed
{%- endif %}

chrony-config-file-file-managed:
@@ -34,3 +36,11 @@ chrony-config-file-file-managed:
chrony: {{ chrony|json }}
- require:
- 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 }}

Notiek ielāde…
Atcelt
Saglabāt