|
@@ -5,14 +5,18 @@
|
|
|
"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 %}
|
|
|
"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 }}
|
|
|
}
|
|
}
|
|
|
],
|
|
],
|
|
|
"uchiwa": {
|
|
"uchiwa": {
|
|
|
|
|
+ {% if uchiwa_users %}
|
|
|
"users": {{ uchiwa_users | to_nice_json }},
|
|
"users": {{ uchiwa_users | to_nice_json }},
|
|
|
|
|
+ {% endif %}
|
|
|
"port": {{ uchiwa_port }},
|
|
"port": {{ uchiwa_port }},
|
|
|
{% if uchiwa_auth_privatekey %}
|
|
{% if uchiwa_auth_privatekey %}
|
|
|
"auth": {
|
|
"auth": {
|