Browse Source

add mine_get function to master config

tags/v0.57.0
Niels Abspoel 9 years ago
parent
commit
b8e53771f3
1 changed files with 18 additions and 0 deletions
  1. +18
    -0
      salt/files/master.d/_defaults.conf

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

# The example below enables minion foo.example.com to get 'network.interfaces' mine # The example below enables minion foo.example.com to get 'network.interfaces' mine
# data only, minions web* to get all network.* and disk.* mine data and all other # data only, minions web* to get all network.* and disk.* mine data and all other
# minions won't get any mine data. # minions won't get any mine data.
{% if 'mine_get' in cfg_master -%}
mine_get:
{%- for minion, data in cfg_master['mine_get']|dictsort %}
{{ minion }}:
{%- for command in data %}
- {% raw %}'{% endraw %}{{ command }}{% raw %}'{% endraw %}
{%- endfor -%}
{%- endfor -%}
{% elif 'mine_get' in cfg_salt -%}
mine_get:
{%- for minion, data in cfg_salt['mine_get']|dictsort %}
{{ minion }}:
{%- for command in data %}
- {% raw %}'{% endraw %}{{ command }}{% raw %}'{% endraw %}
{%- endfor -%}
{%- endfor -%}
{% else -%}
# mine_get: # mine_get:
# foo.example.com: # foo.example.com:
# - network.interfaces # - network.interfaces
# web.*: # web.*:
# - network.* # - network.*
# - disk.* # - disk.*
{%- endif %}




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

Loading…
Cancel
Save