Browse Source

burp: Only backup node which have a burp password set

  This is a workaround around a netbox shortcoming and supposed to be reverted.

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 3 years ago
parent
commit
f107368e3e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      burp/server.sls

+ 1 - 1
burp/server.sls

@@ -44,7 +44,7 @@ burp-server:
       - service: burp-server
 
 {% set nodes = salt['pillar.get']('nodes') %}
-{% for node, node_config in nodes.items()|sort if 'burp' in node_config %}
+{% for node, node_config in nodes.items()|sort if 'burp' in node_config and node_config['burp'].get ('password', False) %}
 /etc/burp/clientconfdir/{{ node }}:
   file.managed:
     - source: salt://burp/server/client.tmpl