mirror of
https://github.com/FAUSheppy/athq-vm-management
synced 2025-12-09 23:08:33 +01:00
feat: icinga ansible dumper
This commit is contained in:
31
templates/icinga_host.conf.j2
Normal file
31
templates/icinga_host.conf.j2
Normal file
@@ -0,0 +1,31 @@
|
||||
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 = "https://{{ website_name }}"
|
||||
http_ssl = true
|
||||
http_onredirect = "follow"
|
||||
}
|
||||
{% endfor %}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user