[icinga-checkins] icinga.org: icinga2-ansible/master: Added custom attribute for check http: vars.http_vhost tied to www.{{ hostvars[host]['ansible_domain'] }}

git at icinga.org git at icinga.org
Sat Jun 7 13:16:05 CEST 2014


Module: icinga2-ansible
Branch: master
Commit: 0f7e785ce39b5b788966af962ed4c829b3b469bd
URL:    https://git.icinga.org/?p=icinga2-ansible.git;a=commit;h=0f7e785ce39b5b788966af962ed4c829b3b469bd

Author: Valentino Gagliardi <valentino.g at servermanaged.it>
Date:   Tue Jun  3 15:02:20 2014 +0200

Added custom attribute for check http: vars.http_vhost tied to www.{{ hostvars[host]['ansible_domain'] }}

---

 templates/host_def.j2 |    1 +
 1 file changed, 1 insertion(+)

diff --git a/templates/host_def.j2 b/templates/host_def.j2
index 5dd715d..27a837c 100644
--- a/templates/host_def.j2
+++ b/templates/host_def.j2
@@ -32,6 +32,7 @@ object Host "{{ hostvars[host]['ansible_fqdn'] }}" {
   address = "{{ hostvars[host]['ansible_eth0']['ipv4']['address'] }}"
   vars.sla = "24x7"
   vars.http = "yes"
+  vars.http_vhost = "www.{{ hostvars[host]['ansible_domain'] }}"
   vars.nrpe_load = "yes"
   vars.nrpe_disk = "yes"
   vars.nrpe_var = "yes"



More information about the icinga-checkins mailing list