summaryrefslogtreecommitdiffstats
path: root/pillar/global/init.sls
diff options
context:
space:
mode:
Diffstat (limited to 'pillar/global/init.sls')
-rw-r--r--pillar/global/init.sls7
1 files changed, 7 insertions, 0 deletions
diff --git a/pillar/global/init.sls b/pillar/global/init.sls
index 74c98ec..41794b5 100644
--- a/pillar/global/init.sls
+++ b/pillar/global/init.sls
@@ -1,3 +1,5 @@
+{%- from slspath ~ '/map.jinja' import firewall_interfaces, public, internal, backend %}
+
include:
- role.salt.common
- role.salt.minion
@@ -15,10 +17,15 @@ zypper:
firewalld:
zones:
internal:
+ {{ firewall_interfaces(internal) }}
ports:
- comment: node_exporter
port: 9200
protocol: tcp
+ {%- if public | length %}
+ public:
+ {{ firewall_interfaces(public) }}
+ {%- endif %}
{%- endif %}
mine_functions: