0
0
mirror of https://github.com/saltstack-formulas/salt-formula.git synced 2024-11-27 22:38:10 +01:00

Stop using clean: True on /etc/salt/{minion,master}.d

New versions of Salt put config files in /etc/salt/{minion,master}.d. We don't
want to erase them by using a clean: True on the file.recurse. This is a
backward incompatible change, but it's necessary to avoid deleting Salt config
files.

Resolves #104
This commit is contained in:
Brian Jackson 2015-03-23 16:53:24 -05:00
parent 2118cc0905
commit 8ebb7f57df
5 changed files with 8 additions and 6 deletions

View File

@ -1,4 +1,5 @@
salt:
clean_config_d_dir: False
# to overwrite map.jinja salt packages
lookup:

View File

@ -10,3 +10,4 @@ salt:
salt_cloud: salt-cloud
salt_api: salt-api
salt_ssh: salt-ssh
clean_config_d_dir: False

View File

@ -7,7 +7,7 @@ salt-master:
- name: {{ salt_settings.config_path }}/master.d
- template: jinja
- source: salt://salt/files/master.d
- clean: True
- clean: {{ salt_settings.clean_config_d_dir }}
service.running:
- enable: True
- name: {{ salt_settings.master_service }}

View File

@ -7,7 +7,7 @@ salt-minion:
- name: {{ salt_settings.config_path }}/minion.d
- template: jinja
- source: salt://salt/files/minion.d
- clean: True
- clean: {{ salt_settings.clean_config_d_dir }}
- context:
standalone: False
service.running:

View File

@ -7,7 +7,7 @@ salt-minion:
- name: {{ salt_settings.config_path }}/minion.d
- template: jinja
- source: salt://salt/files/minion.d
- clean: True
- clean: {{ salt_settings.clean_config_d_dir }}
- context:
standalone: True
service.dead: