Ansible/roles/sensu.sensu/templates/uchiwa_config.json.j2

30 lines
810 B
Plaintext
Raw Normal View History

{
"sensu": [
{
"name": "{{ sensu_uchiwa_dc_name }}",
"host": "{{ sensu_api_host }}",
"ssl": {{ sensu_api_ssl | lower }},
"port": {{ sensu_uchiwa_api_port }},
{% if sensu_api_user_name %}
"user": "{{ sensu_api_user_name }}",
"pass": "{{ sensu_api_password }}",
{% endif %}
"path": "{{ sensu_api_uchiwa_path }}",
"timeout": {{ sensu_api_timeout }}
}
],
"uchiwa": {
{% if sensu_uchiwa_users %}
"users": {{ sensu_uchiwa_users | to_nice_json }},
{% endif %}
"port": {{ sensu_uchiwa_port }},
{% if sensu_uchiwa_auth_privatekey %}
"auth": {
"privatekey": "{{ sensu_uchiwa_auth_privatekey }}",
"publickey": "{{ sensu_uchiwa_auth_publickey }}"
},
{% endif %}
"refresh": {{ sensu_uchiwa_refresh }}
}
}