瀏覽代碼

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
master
Brian Jackson 9 年之前
父節點
當前提交
8ebb7f57df
共有 5 個文件被更改,包括 8 次插入6 次删除
  1. +4
    -3
      pillar.example
  2. +1
    -0
      salt/defaults.yaml
  3. +1
    -1
      salt/master.sls
  4. +1
    -1
      salt/minion.sls
  5. +1
    -1
      salt/standalone.sls

+ 4
- 3
pillar.example 查看文件

@@ -1,4 +1,5 @@
salt:
clean_config_d_dir: False

# to overwrite map.jinja salt packages
lookup:
@@ -27,18 +28,18 @@ salt:
ssl_key: /etc/pki/api/certs/server.key
debug: False
disable_ssl: False
# salt minion config:
minion:

# single master setup
master: salt
# multi master setup
master:
- salt_master_1
- salt_master_2
fileserver_backend:
- git
- roots

+ 1
- 0
salt/defaults.yaml 查看文件

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

+ 1
- 1
salt/master.sls 查看文件

@@ -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 }}

+ 1
- 1
salt/minion.sls 查看文件

@@ -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:

+ 1
- 1
salt/standalone.sls 查看文件

@@ -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:

Loading…
取消
儲存