Compare commits
2 Commits
a1782581bb
...
3d7f4ae4b5
Author | SHA1 | Date | |
---|---|---|---|
3d7f4ae4b5 | |||
450b9e7388 |
@ -1,4 +1,6 @@
|
||||
include:
|
||||
- role.salt.common
|
||||
- role.salt.minion
|
||||
- secret.common
|
||||
|
||||
managed_header_pound: |
|
||||
|
2
pillar/role/salt/common.sls
Normal file
2
pillar/role/salt/common.sls
Normal file
@ -0,0 +1,2 @@
|
||||
salt:
|
||||
hash_type: sha512
|
11
pillar/role/salt/minion.sls
Normal file
11
pillar/role/salt/minion.sls
Normal 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 %}
|
@ -1,3 +1,3 @@
|
||||
include:
|
||||
- role.minion
|
||||
- role.salt.minion
|
||||
- common.{{ grains['os'] | lower }}
|
||||
|
@ -1,2 +0,0 @@
|
||||
include:
|
||||
- profile.salt.grains
|
2
salt/role/salt/minion.sls
Normal file
2
salt/role/salt/minion.sls
Normal file
@ -0,0 +1,2 @@
|
||||
include:
|
||||
- salt.minion
|
Loading…
x
Reference in New Issue
Block a user