Browse Source

icinga2: Only write secrets on icinga server

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 8 months ago
parent
commit
79c2e08b00
1 changed files with 2 additions and 0 deletions
  1. 2 0
      icinga2/init.sls

+ 2 - 0
icinga2/init.sls

@@ -83,6 +83,7 @@ ffho-plugins:
     - watch_in:
       - service: icinga2
 
+{% if grains['id'] in ["icinga2.in.ffho.net"] %}
 /etc/icinga2/secrets.conf:
   file.managed:
     - source: salt://icinga2/secrets.conf.tmpl
@@ -92,6 +93,7 @@ ffho-plugins:
       - pkg: icinga2
     - watch_in:
       - service: icinga2
+{% endif %}
 
 # Connect "master" and client zones
 /etc/icinga2/zones.conf: