瀏覽代碼

Added recursive management of minion.d and master.d.

This allows users to easily add configuration settings that the formula
doesn't yet provide, without having to modify the existing templates.
master
Andrew Vant 10 年之前
父節點
當前提交
00e245e20a
共有 4 個檔案被更改,包括 8 行新增6 行删除
  1. +0
    -0
      salt/files/master.d/_defaults.conf
  2. +0
    -0
      salt/files/minion.d/_defaults.conf
  3. +4
    -3
      salt/master.sls
  4. +4
    -3
      salt/minion.sls

salt/files/master → salt/files/master.d/_defaults.conf 查看文件


salt/files/minion → salt/files/minion.d/_defaults.conf 查看文件


+ 4
- 3
salt/master.sls 查看文件

@@ -3,10 +3,11 @@
salt-master:
pkg.installed:
- name: {{ pkgs['salt-master'] }}
file.managed:
- name: /etc/salt/master.d/master.conf
file.recurse:
- name: /etc/salt/master.d
- template: jinja
- source: salt://salt/files/master
- source: salt://salt/files/master.d
- clean: True
service.running:
- enable: True
- watch:

+ 4
- 3
salt/minion.sls 查看文件

@@ -3,10 +3,11 @@
salt-minion:
pkg.installed:
- name: {{ pkgs['salt-minion'] }}
file.managed:
- name: /etc/salt/minion.d/minion.conf
file.recurse:
- name: /etc/salt/minion.d
- template: jinja
- source: salt://salt/files/minion
- source: salt://salt/files/minion.d
- clean: True
service.running:
- enable: True
- watch:

Loading…
取消
儲存