From 824baf386b006c289fe2c8ab9453504ec9859b8d Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Sun, 29 Jan 2023 17:27:58 +0100 Subject: 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 --- pillar/global/macros.jinja | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pillar/global/macros.jinja') 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 -%} -- cgit v1.2.3