Compare commits
4 Commits
b29adbc69d
...
546508c7de
Author | SHA1 | Date | |
---|---|---|---|
546508c7de | |||
fe2a1a21b9 | |||
eb1731e7a1 | |||
11620c863c |
@ -1,4 +1,6 @@
|
|||||||
include:
|
include:
|
||||||
|
- role.salt.common
|
||||||
|
- role.salt.minion
|
||||||
- secret.common
|
- secret.common
|
||||||
|
|
||||||
managed_header_pound: |
|
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:
|
include:
|
||||||
- role.minion
|
- role.salt.minion
|
||||||
- common.{{ grains['os'] | lower }}
|
- common.{{ grains['os'] | lower }}
|
||||||
|
@ -6,10 +6,7 @@ salt_grains_file:
|
|||||||
- names:
|
- names:
|
||||||
- /etc/salt/grains:
|
- /etc/salt/grains:
|
||||||
- source: salt:///{{ slspath }}/files/etc/salt/grains.j2
|
- source: salt:///{{ slspath }}/files/etc/salt/grains.j2
|
||||||
|
- require_in:
|
||||||
salt_restart_minion:
|
- service: salt-minion
|
||||||
cmd.run:
|
- watch_in:
|
||||||
- name: 'salt-call service.restart salt-minion'
|
- service: salt-minion
|
||||||
- bg: True
|
|
||||||
- onchanges:
|
|
||||||
- file: salt_grains_file
|
|
||||||
|
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