Move managed grains to minion pillar
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
parent
11620c863c
commit
eb1731e7a1
@ -1,5 +1,11 @@
|
|||||||
|
{%- set myconfig = pillar['netbox']['config_context'] -%}
|
||||||
|
|
||||||
salt:
|
salt:
|
||||||
minion_remove_config: True
|
minion_remove_config: True
|
||||||
minion:
|
minion:
|
||||||
master_type: str
|
master_type: str
|
||||||
master: {{ pillar['netbox']['config_context']['salt_master'] }}
|
master: {{ myconfig['salt_master'] }}
|
||||||
|
{%- if 'roles' in myconfig and myconfig['roles'] | length > 0 %}
|
||||||
|
grains:
|
||||||
|
roles: {{ myconfig['roles'] }}
|
||||||
|
{%- endif %}
|
||||||
|
@ -1,3 +1,2 @@
|
|||||||
include:
|
include:
|
||||||
- profile.salt.grains
|
|
||||||
- salt.minion
|
- salt.minion
|
||||||
|
Loading…
Reference in New Issue
Block a user