Move managed grains to minion pillar

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
Georg Pfuetzenreuter 2023-01-15 15:53:39 +01:00
parent 11620c863c
commit eb1731e7a1
Signed by: Georg
GPG Key ID: 1ED2F138E7E6FF57
2 changed files with 7 additions and 2 deletions

View File

@ -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 %}

View File

@ -1,3 +1,2 @@
include: include:
- profile.salt.grains
- salt.minion - salt.minion