Browse Source

icinga2: Write boolean values as-is into generated configuration.

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 2 years ago
parent
commit
0c064a08c4
1 changed files with 4 additions and 0 deletions
  1. 4 0
      icinga2/host.conf.tmpl

+ 4 - 0
icinga2/host.conf.tmpl

@@ -112,7 +112,11 @@ object Host "{{ node_id }}" {
   {%- for service, params in monitoring_config.get ('service_param').items ()|sort %}
 		"{{ service }}" = {
     {%- for entry, value in params.items ()|sort %}
+      {%- if value is boolean %}
+			"{{ entry }}" = {{ value }},
+      {%- else %}
 			"{{ entry }}" = "{{ value }}",
+      {%- endif %}
     {%- endfor %}
 		},
   {%- endfor %}