Sfoglia il codice sorgente

Merge pull request #99 from aboe76/mine_get_master

add mine_get function to master config
tags/v0.57.0
Nitin Madhok 9 anni fa
parent
commit
cde11bc1e8
1 ha cambiato i file con 18 aggiunte e 0 eliminazioni
  1. +18
    -0
      salt/files/master.d/_defaults.conf

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

@@ -811,12 +811,30 @@ peer_run:
# 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
# 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:
# foo.example.com:
# - network.interfaces
# web.*:
# - network.*
# - disk.*
{%- endif %}


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

Loading…
Annulla
Salva