mirror of
https://github.com/FAUSheppy/athq-vm-management
synced 2025-12-09 15:08:31 +01:00
32 lines
655 B
Django/Jinja
32 lines
655 B
Django/Jinja
object Host "{{ hostname }}" {
|
|
|
|
import "generic-host"
|
|
|
|
name = "{{ hostname }}"
|
|
address = "{{ address }}"
|
|
vars.remote = "true"
|
|
vars.linux = "true"
|
|
|
|
max_check_attempts = 7
|
|
retry_interval = 1m
|
|
|
|
vars.notification["mail"] = {
|
|
groups = ["icingaadmins"]
|
|
}
|
|
|
|
{% for website_name, url in websites %}
|
|
vars.http_vhosts["{{ website_name }}"] = {
|
|
{% if url %}
|
|
http_uri = "{{ url }}"
|
|
{% else %}
|
|
http_uri = "/"
|
|
{% endif %}
|
|
http_address = "{{ website_name }}"
|
|
http_ssl = true
|
|
http_onredirect = "follow"
|
|
}
|
|
{% endfor %}
|
|
|
|
}
|
|
|