summaryrefslogtreecommitdiffstats
path: root/pillar/global/macros.jinja
diff options
context:
space:
mode:
authorGeorg Pfuetzenreuter2023-01-29 17:27:58 +0100
committerGeorg Pfuetzenreuter2023-01-29 17:27:58 +0100
commit824baf386b006c289fe2c8ab9453504ec9859b8d (patch)
treefdbebcf6800f1d32205a8ba0c04d3804e500fb43 /pillar/global/macros.jinja
parentc8aa6c6157d0eb96d2d1077e1e74720ff31c91c3 (diff)
downloadsalt-824baf386b006c289fe2c8ab9453504ec9859b8d.tar.gz
salt-824baf386b006c289fe2c8ab9453504ec9859b8d.tar.bz2
salt-824baf386b006c289fe2c8ab9453504ec9859b8d.zip
Firewall interface mapping logic
Detect which interfaces belong to which zones, and configure firewalld accordingly. Backend zone is currently only prepared and yet to be tested and enabled. Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
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 -%}