diff --git a/firewalld/backend.sls b/firewalld/backend.sls index 9b9e37f..decd9cb 100644 --- a/firewalld/backend.sls +++ b/firewalld/backend.sls @@ -2,7 +2,7 @@ # # This state ensures that /etc/firewalld/backends/ exists. # -{% from "firewalld/map.jinja" import firewalld with context %} +{% from "./map.jinja" import firewalld with context %} {% set backend_manage = firewalld.backend.manage %} {% set backend_pkg = firewalld.backend.pkg %} diff --git a/firewalld/config.sls b/firewalld/config.sls index 0a10c57..9f78248 100644 --- a/firewalld/config.sls +++ b/firewalld/config.sls @@ -2,7 +2,7 @@ # # This state configures firewalld. # -{% from "firewalld/map.jinja" import firewalld with context %} +{% from "./map.jinja" import firewalld with context %} directory_firewalld: file.directory: # make sure this is a directory diff --git a/firewalld/debian10.sls b/firewalld/debian10.sls index 1438a1c..28d1376 100644 --- a/firewalld/debian10.sls +++ b/firewalld/debian10.sls @@ -1,4 +1,4 @@ -{% from "firewalld/map.jinja" import firewalld with context %} +{% from "./map.jinja" import firewalld with context %} firewalld_repo_buster-backports: pkgrepo.managed: diff --git a/firewalld/direct.sls b/firewalld/direct.sls index 9104898..3246f0b 100644 --- a/firewalld/direct.sls +++ b/firewalld/direct.sls @@ -1,6 +1,6 @@ # == State: firewalld.direct -{% from "firewalld/map.jinja" import firewalld with context %} +{% from "./map.jinja" import firewalld with context %} # == Define: firewalld.direct diff --git a/firewalld/init.sls b/firewalld/init.sls index ab4c506..346494d 100644 --- a/firewalld/init.sls +++ b/firewalld/init.sls @@ -3,7 +3,7 @@ # # This state installs/runs firewalld. # -{% from "firewalld/map.jinja" import firewalld with context %} +{% from "./map.jinja" import firewalld with context %} {% if salt['grains.get']('osfullname') == "SLES" and salt['grains.get']('osmajorrelease')|int < 15 %} @@ -17,14 +17,14 @@ firewalld-unsupported: include: {% if grains.get('osfinger', '') == 'Debian-10' %} - - firewalld.debian10 + - .debian10 {% endif %} - - firewalld.config - - firewalld.ipsets - - firewalld.backend - - firewalld.services - - firewalld.zones - - firewalld.direct + - .config + - .ipsets + - .backend + - .services + - .zones + - .direct # iptables service that comes with rhel/centos iptables: diff --git a/firewalld/ipsets.sls b/firewalld/ipsets.sls index 3fbcc66..ba23cd9 100644 --- a/firewalld/ipsets.sls +++ b/firewalld/ipsets.sls @@ -2,7 +2,7 @@ # # This state ensures that /etc/firewalld/ipsets/ exists. # -{% from "firewalld/map.jinja" import firewalld with context %} +{% from "./map.jinja" import firewalld with context %} # Backward compatibility setting and deprecation notices {% set ipset_manage = false %} diff --git a/firewalld/map.jinja b/firewalld/map.jinja index f25fb36..7448ad7 100644 --- a/firewalld/map.jinja +++ b/firewalld/map.jinja @@ -2,11 +2,11 @@ # vim: ft=jinja {#- Start with defaults from defaults.yaml #} -{% import_yaml "firewalld/defaults.yaml" as default_settings %} -{% import_yaml "firewalld/osarchmap.yaml" as osarchmap %} -{% import_yaml "firewalld/osfamilymap.yaml" as osfamilymap %} -{% import_yaml "firewalld/osmap.yaml" as osmap %} -{% import_yaml "firewalld/osfingermap.yaml" as osfingermap %} +{% import_yaml "./defaults.yaml" as default_settings %} +{% import_yaml "./osarchmap.yaml" as osarchmap %} +{% import_yaml "./osfamilymap.yaml" as osfamilymap %} +{% import_yaml "./osmap.yaml" as osmap %} +{% import_yaml "./osfingermap.yaml" as osfingermap %} {% set _config = salt['config.get']('firewalld', default={}) %} diff --git a/firewalld/services.sls b/firewalld/services.sls index 99e34c5..1b6d1e4 100644 --- a/firewalld/services.sls +++ b/firewalld/services.sls @@ -2,7 +2,7 @@ # # This state ensures that /etc/firewalld/services/ exists. # -{% from "firewalld/map.jinja" import firewalld with context %} +{% from "./map.jinja" import firewalld with context %} directory_firewalld_services: file.directory: # make sure this is a directory diff --git a/firewalld/zones.sls b/firewalld/zones.sls index 220cc96..16fc07c 100644 --- a/firewalld/zones.sls +++ b/firewalld/zones.sls @@ -2,7 +2,7 @@ # # This state ensures that /etc/firewalld/zones/ exists. # -{% from "firewalld/map.jinja" import firewalld with context %} +{% from "./map.jinja" import firewalld with context %} directory_firewalld_zones: file.directory: # make sure this is a directory