Skip to content

Commit d038873

Browse files
author
Clayton O'Neill
committed
Only export exportd resources not named garbd
The template should only emit records that are exported, and because of some deployment cruft we also want to exclude any services with the string garb in the name for now.
1 parent 2650402 commit d038873

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/nagios_.jinja2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
{% set object_name = resource_type[7:] %}
44
{% set named_object = object_name in named_objects %}
55
{% for resource in resources %}
6+
{% if resource.exported %}
7+
{% if "garb" not in resource.name %}
68
define {{object_name}} {
79
{% if named_object %}
810
{{object_name}}_name {{resource.name}}
@@ -24,4 +26,6 @@ define {{object_name}} {
2426
{% endif %}
2527
{% endfor %}
2628
}
29+
{% endif %}
30+
{% endif %}
2731
{% endfor %}

0 commit comments

Comments
 (0)