Use custom minion master configuration
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
parent
fe2a1a21b9
commit
546508c7de
@ -2,4 +2,3 @@ salt:
|
||||
minion_remove_config: True
|
||||
minion:
|
||||
master_type: str
|
||||
master: {{ myconfig['salt_master'] }}
|
||||
|
@ -1,3 +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
|
||||
|
Loading…
Reference in New Issue
Block a user