瀏覽代碼

Merge pull request #91 from qbcode/master

Add mine_functions to master config template
master
Nitin Madhok 10 年之前
父節點
當前提交
5cec66107a
共有 2 個文件被更改,包括 22 次插入0 次删除
  1. +5
    -0
      pillar.example
  2. +17
    -0
      salt/files/master.d/_defaults.conf

+ 5
- 0
pillar.example 查看文件

@@ -9,6 +9,11 @@ salt:
file_roots:
base:
- /srv/salt
mine_functions:
network.interfaces: []
network.ip_addrs: []
grains.items: []

minion:
master: salt
fileserver_backend:

+ 17
- 0
salt/files/master.d/_defaults.conf 查看文件

@@ -817,6 +817,23 @@ peer_run:
# web.*:
# - network.*
# - disk.*
{% if 'mine_functions' in cfg_master %}
mine_functions:
{% for name, roots in cfg_master['mine_functions'].items() %}
{{ name }}:
{% for mod in roots %}
- {{ mod }}
{% endfor %}
{% endfor %}
{% elif 'mine_functions' in cfg_salt %}
mine_functions:
{% for name, roots in cfg_salt['mine_functions'].items() %}
{{ name }}:
{% for mod in roots %}
- {{ mod }}
{% endfor %}
{% endfor %}
{% endif %}


##### Logging settings #####

Loading…
取消
儲存