From 0bb9c00a64b981d4b793f618c5dbda8337b99ce0 Mon Sep 17 00:00:00 2001 From: Ramesh Nachimuthu Date: Sun, 27 Apr 2014 19:03:45 +0530 Subject: auto config : Enhance the auto config to preserve user changes Enhace the auto configuration in nagios to preserve the user changes. pynag apis are used to read/write/update the nagios config files. Change-Id: I6820928fb2b0baff5d6e65c811a48b5ff718f9e3 Signed-off-by: Ramesh Nachimuthu --- config/gluster-host.cfg.template | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 config/gluster-host.cfg.template (limited to 'config/gluster-host.cfg.template') diff --git a/config/gluster-host.cfg.template b/config/gluster-host.cfg.template deleted file mode 100644 index 0b5173d..0000000 --- a/config/gluster-host.cfg.template +++ /dev/null @@ -1,34 +0,0 @@ -###@GENERATED@### -# AUTO-GENERATED FILE. DO NOT MODIFY. -# -# This confinguration file was automatically generated by the -# Gluster Auto Discovery tool. It should not be modified by hand. -# - -{% if host['use'] == 'gluster-cluster' -%} -define hostgroup{ -hostgroup_name {{host['host_name']}} -alias {{host['alias']}} -} -{%- endif %} - -define host{ -use {{host['use']}} -host_name {{host['host_name']}} -alias {{host['alias']}} -address {{host['address']}} -{% if host['check_command'] is defined -%} -check_command {{host['check_command']}} -{% endif -%} -{% if host['hostgroups'] is defined -%} -hostgroups {{host['hostgroups']}} -{% endif -%} -} - -{% for service in host['host_services'] %} -define service{ -{%- for key, value in service.iteritems() %} -{{ key.ljust(20) }} {{ value }} -{%- endfor %} -} -{% endfor %} -- cgit