mirror of
https://github.com/saltstack-formulas/salt-formula.git
synced 2024-11-28 02:57:50 +01:00
Merge pull request #91 from qbcode/master
Add mine_functions to master config template
This commit is contained in:
commit
5cec66107a
@ -9,6 +9,11 @@ salt:
|
|||||||
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:
|
||||||
|
@ -817,6 +817,23 @@ peer_run:
|
|||||||
# 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…
Reference in New Issue
Block a user