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:
|
||||
minion_remove_config: True
|
||||
minion:
|
||||
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:
|
||||
- profile.salt.grains
|
||||
- salt.minion
|
||||
|
Loading…
Reference in New Issue
Block a user