Compare commits

..

2 Commits

Author SHA1 Message Date
3d7f4ae4b5
Move managed grains to minion pillar
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-01-15 15:55:30 +01:00
450b9e7388
Init salted salt + minion pillar
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-01-15 15:50:17 +01:00
6 changed files with 18 additions and 3 deletions

View File

@ -1,4 +1,6 @@
include: include:
- role.salt.common
- role.salt.minion
- secret.common - secret.common
managed_header_pound: | managed_header_pound: |

View File

@ -0,0 +1,2 @@
salt:
hash_type: sha512

View File

@ -0,0 +1,11 @@
{%- set myconfig = pillar['netbox']['config_context'] -%}
salt:
minion_remove_config: True
minion:
master_type: True
master: {{ myconfig['salt_master'] }}
{%- if 'roles' in myconfig and myconfig['roles'] | length > 0 %}
grains:
roles: {{ myconfig['roles'] }}
{%- endif %}

View File

@ -1,3 +1,3 @@
include: include:
- role.minion - role.salt.minion
- common.{{ grains['os'] | lower }} - common.{{ grains['os'] | lower }}

View File

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

View File

@ -0,0 +1,2 @@
include:
- salt.minion