Use custom minion master configuration

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
Georg Pfuetzenreuter 2023-01-15 17:12:47 +01:00
parent fe2a1a21b9
commit 546508c7de
Signed by: Georg
GPG Key ID: 1ED2F138E7E6FF57
2 changed files with 9 additions and 1 deletions

View File

@ -2,4 +2,3 @@ salt:
minion_remove_config: True minion_remove_config: True
minion: minion:
master_type: str master_type: str
master: {{ myconfig['salt_master'] }}

View File

@ -1,3 +1,12 @@
include: include:
- salt.minion - salt.minion
- .grains - .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