Browse Source

Allow no user for uchiwa

Dan Ragnar 7 years ago
parent
commit
6b316bc9a9
1 changed files with 2 additions and 0 deletions
  1. 2 0
      templates/uchiwa_config.json.j2

+ 2 - 0
templates/uchiwa_config.json.j2

@@ -5,8 +5,10 @@
        "host": "{{ sensu_api_host }}",
        "host": "{{ sensu_api_host }}",
        "ssl": {{ sensu_api_ssl | lower }},
        "ssl": {{ sensu_api_ssl | lower }},
        "port": {{ uchiwa_sensu_api_port }},
        "port": {{ uchiwa_sensu_api_port }},
+       {% if sensu_api_user_name | length > 0 %}
        "user": "{{ sensu_api_user_name }}",
        "user": "{{ sensu_api_user_name }}",
        "pass": "{{ sensu_api_password }}",
        "pass": "{{ sensu_api_password }}",
+       {% endif %}
        "path": "{{ sensu_api_uchiwa_path }}",
        "path": "{{ sensu_api_uchiwa_path }}",
        "timeout": {{ sensu_api_timeout }}
        "timeout": {{ sensu_api_timeout }}
    }
    }