Browse Source

roles/icinga2-monitoring: https vhost configuration

python3
Zolfa 4 years ago
parent
commit
a03c60c4b6
Signed by: zolfa GPG Key ID: E1A43B038C4D6616
1 changed files with 15 additions and 0 deletions
  1. +15
    -0
      roles/icinga2-monitoring/templates/host.conf.j2

+ 15
- 0
roles/icinga2-monitoring/templates/host.conf.j2 View File

@ -5,4 +5,19 @@ object Host "{{ item.key }}" {
vars.os = "Linux"
vars.sla = "24x7"
{% if 'vhosts' in item.value %}
{% for vhost in item.value.vhosts %}
vars.http_vhosts["{{ vhost }}"] = {
http_uri = "/"
http_vhost = "{{ vhost }}"
http_onredirect = "follow"
http_sni = true
/* Check remaining days before cert expiration */
http_certificate = "30,20"
}
{% endfor %}
{% endif %}
}

Loading…
Cancel
Save