|
|
|
|
|
|
|
|
# |
|
|
# |
|
|
# Include a config file from some other path: |
|
|
# Include a config file from some other path: |
|
|
{% if 'include' in cfg_minion -%} |
|
|
{% if 'include' in cfg_minion -%} |
|
|
{%- do default_keys.append('include') %} |
|
|
|
|
|
{% if isinstance(cfg_minion['include'], list) -%} |
|
|
|
|
|
|
|
|
{% do default_keys.append('include') -%} |
|
|
|
|
|
{% if cfg_minion['include'] is iterable and cfg_minion['include'] is not string -%} |
|
|
include: |
|
|
include: |
|
|
{% for include in cfg_minion['include'] -%} |
|
|
|
|
|
|
|
|
{%- for include in cfg_minion['include'] %} |
|
|
- {{ include }} |
|
|
- {{ include }} |
|
|
{% endfor -%} |
|
|
|
|
|
|
|
|
{%- endfor -%} |
|
|
{% else -%} |
|
|
{% else -%} |
|
|
include: cfg_minion['include'] |
|
|
|
|
|
{% endif -%} |
|
|
|
|
|
|
|
|
include: {{ cfg_minion['include'] }} |
|
|
|
|
|
{%- endif -%} |
|
|
{% elif 'include' in cfg_salt -%} |
|
|
{% elif 'include' in cfg_salt -%} |
|
|
{% if isinstance(cfg_salt['include'], list) -%} |
|
|
|
|
|
|
|
|
{% if cfg_salt['include'] is iterable and cfg_salt['include'] is not string -%} |
|
|
include: |
|
|
include: |
|
|
{% for include in cfg_salt['include'] -%} |
|
|
|
|
|
|
|
|
{%- for include in cfg_salt['include'] %} |
|
|
- {{ include }} |
|
|
- {{ include }} |
|
|
{% endfor -%} |
|
|
|
|
|
|
|
|
{%- endfor -%} |
|
|
{% else -%} |
|
|
{% else -%} |
|
|
include: cfg_salt['include'] |
|
|
|
|
|
{% endif -%} |
|
|
|
|
|
{% endif -%} |
|
|
|
|
|
|
|
|
include: {{ cfg_salt['include'] }} |
|
|
|
|
|
{%- endif -%} |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
##### Minion module management ##### |
|
|
##### Minion module management ##### |
|
|
########################################## |
|
|
########################################## |