uchiwa_config.json.j2 735 B

123456789101112131415161718192021222324252627
  1. {
  2. "sensu": [
  3. {
  4. "name": "{{ uchiwa_dc_name }}",
  5. "host": "{{ sensu_api_host }}",
  6. "ssl": {{ sensu_api_ssl | lower }},
  7. "port": {{ uchiwa_sensu_api_port }},
  8. {% if sensu_api_user_name | length > 0 %}
  9. "user": "{{ sensu_api_user_name }}",
  10. "pass": "{{ sensu_api_password }}",
  11. {% endif %}
  12. "path": "{{ sensu_api_uchiwa_path }}",
  13. "timeout": {{ sensu_api_timeout }}
  14. }
  15. ],
  16. "uchiwa": {
  17. "users": {{ uchiwa_users | to_nice_json }},
  18. "port": {{ uchiwa_port }},
  19. {% if uchiwa_auth_privatekey %}
  20. "auth": {
  21. "privatekey": "{{ uchiwa_auth_privatekey }}",
  22. "publickey": "{{ uchiwa_auth_publickey }}"
  23. },
  24. {% endif %}
  25. "refresh": {{ uchiwa_refresh }}
  26. }
  27. }