Add minion's include configurability
This commit is contained in:
parent
9a5e71bfd9
commit
c7af1d12a1
10
files/minion
10
files/minion
@ -141,6 +141,16 @@ tcp_pull_port: {{ minion.get('tcp_pull_port', '4511') }}
|
|||||||
# include:
|
# include:
|
||||||
# - /etc/salt/extra_config
|
# - /etc/salt/extra_config
|
||||||
# - /etc/roles/webserver
|
# - /etc/roles/webserver
|
||||||
|
{% if minion['include'] is defined -%}
|
||||||
|
{% if isinstance(minion['include'], list) -%}
|
||||||
|
include:
|
||||||
|
{% for include in minion['include'] -%}
|
||||||
|
- {{ include }}
|
||||||
|
{% endfor -%}
|
||||||
|
{% else -%}
|
||||||
|
include: minion['include']
|
||||||
|
{% endif -%}
|
||||||
|
{% endif -%}
|
||||||
|
|
||||||
##### Minion module management #####
|
##### Minion module management #####
|
||||||
##########################################
|
##########################################
|
||||||
|
Loading…
Reference in New Issue
Block a user