Compare commits
4 Commits
b29adbc69d
...
546508c7de
Author | SHA1 | Date | |
---|---|---|---|
546508c7de | |||
fe2a1a21b9 | |||
eb1731e7a1 | |||
11620c863c |
@ -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
|
4
pillar/role/salt/minion.sls
Normal file
4
pillar/role/salt/minion.sls
Normal file
@ -0,0 +1,4 @@
|
||||
salt:
|
||||
minion_remove_config: True
|
||||
minion:
|
||||
master_type: str
|
@ -1,3 +1,3 @@
|
||||
include:
|
||||
- role.minion
|
||||
- role.salt.minion
|
||||
- common.{{ grains['os'] | lower }}
|
||||
|
@ -6,10 +6,7 @@ salt_grains_file:
|
||||
- names:
|
||||
- /etc/salt/grains:
|
||||
- source: salt:///{{ slspath }}/files/etc/salt/grains.j2
|
||||
|
||||
salt_restart_minion:
|
||||
cmd.run:
|
||||
- name: 'salt-call service.restart salt-minion'
|
||||
- bg: True
|
||||
- onchanges:
|
||||
- file: salt_grains_file
|
||||
- require_in:
|
||||
- service: salt-minion
|
||||
- watch_in:
|
||||
- service: salt-minion
|
||||
|
12
salt/profile/salt/minion.sls
Normal file
12
salt/profile/salt/minion.sls
Normal file
@ -0,0 +1,12 @@
|
||||
include:
|
||||
- salt.minion
|
||||
- .grains
|
||||
|
||||
/etc/salt/minion.d/master.conf:
|
||||
file.managed:
|
||||
- contents:
|
||||
- 'master: {{ salt['pillar.get']('netbox:config_context:salt_master') }}'
|
||||
- require_in:
|
||||
- service: salt-minion
|
||||
- watch_in:
|
||||
- service: salt-minion
|
@ -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:
|
||||
- profile.salt.minion
|
Loading…
x
Reference in New Issue
Block a user