summaryrefslogtreecommitdiffstats
path: root/pillar/global/macros.jinja
diff options
context:
space:
mode:
Diffstat (limited to 'pillar/global/macros.jinja')
-rw-r--r--pillar/global/macros.jinja6
1 files changed, 6 insertions, 0 deletions
diff --git a/pillar/global/macros.jinja b/pillar/global/macros.jinja
index d01784a..1d3eade 100644
--- a/pillar/global/macros.jinja
+++ b/pillar/global/macros.jinja
@@ -18,3 +18,9 @@
- {{ ip }}
{%- endfor %}
{%- endmacro -%}
+
+{%- macro firewall_interfaces(interfaces) -%}
+{%- if interfaces | length -%}
+interfaces: {{ interfaces }}
+{%- endif -%}
+{%- endmacro -%}