Skip to content
Snippets Groups Projects
Commit deee6931 authored by Jimmy Tang's avatar Jimmy Tang
Browse files

Add mine_functions to master config template

parent d3b920f5
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,11 @@ salt:
file_roots:
base:
- /srv/salt
mine_functions:
network.interfaces: []
network.ip_addrs: []
grains.items: []
minion:
master: salt
fileserver_backend:
......
......@@ -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 #####
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment