Browse Source

included files are only valid when included

master
Sean Johnson 1 year ago
parent
commit
76fcb9f31f
  1. 16
      fwrules/init.sls

16
fwrules/init.sls

@ -22,7 +22,6 @@ netfilter-persistent: @@ -22,7 +22,6 @@ netfilter-persistent:
- group: root
- backup: minion
- template: jinja
# - check_cmd: /usr/sbin/nft -c -f
/etc/firewall/chains.nft:
file.managed:
@ -32,7 +31,6 @@ netfilter-persistent: @@ -32,7 +31,6 @@ netfilter-persistent:
- group: root
- backup: minion
- template: jinja
# - check_cmd: /usr/sbin/nft -c -f
/etc/firewall/firewall.nft:
file.managed:
@ -46,11 +44,11 @@ netfilter-persistent: @@ -46,11 +44,11 @@ netfilter-persistent:
- file: /etc/firewall/sets.nft
- file: /etc/firewall/chains.nft
- backup: minion
# - check_cmd: /usr/sbin/nft -c -f
- check_cmd: /usr/sbin/nft -c -f
# nft -e -f /etc/firewall/firewall.nft:
# cmd.run:
# - onchanges:
# - file: /etc/firewall/firewall.nft
# - file: /etc/firewall/chains.nft
# - file: /etc/firewall/sets.nft
nft -e -f /etc/firewall/firewall.nft:
cmd.run:
- onchanges:
- file: /etc/firewall/firewall.nft
- file: /etc/firewall/chains.nft
- file: /etc/firewall/sets.nft

Loading…
Cancel
Save