Browse Source

Add mine_functions to master config template

master
Jimmy Tang 9 years ago
parent
commit
deee69319f
2 changed files with 22 additions and 0 deletions
  1. +5
    -0
      pillar.example
  2. +17
    -0
      salt/files/master.d/_defaults.conf

+ 5
- 0
pillar.example View File

file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt
mine_functions:
network.interfaces: []
network.ip_addrs: []
grains.items: []

minion: minion:
master: salt master: salt
fileserver_backend: fileserver_backend:

+ 17
- 0
salt/files/master.d/_defaults.conf View File

# web.*: # web.*:
# - network.* # - network.*
# - disk.* # - 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 ##### ##### Logging settings #####

Loading…
Cancel
Save