mirror of
https://github.com/FAUSheppy/athq-vm-management
synced 2025-12-06 05:41:35 +01:00
33 lines
692 B
Django/Jinja
33 lines
692 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
|
|
|
|
# TODO condition template?
|
|
# 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 %}
|
|
|
|
}
|
|
|