From 36cfdaeeeccba8b6a38a69328bede5258ef654f1 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Wed, 25 Sep 2024 21:07:13 +0200 Subject: [PATCH] updated nftables state --- states/nftables/config.sls | 5 +++++ states/nftables/service.sls | 1 + 2 files changed, 6 insertions(+) diff --git a/states/nftables/config.sls b/states/nftables/config.sls index 88eff81..44d04d8 100644 --- a/states/nftables/config.sls +++ b/states/nftables/config.sls @@ -25,3 +25,8 @@ nftables-main-config: - require: - file: nftables-rules-config - pkg: nftables-pkg + +nftables-config-check: + cmd.run: + - name: nftables -c -f /etc/nftables.conf + - stateful: True diff --git a/states/nftables/service.sls b/states/nftables/service.sls index c0b3633..792319f 100644 --- a/states/nftables/service.sls +++ b/states/nftables/service.sls @@ -6,3 +6,4 @@ nftables-service: - enable: true - require: - pkg: nftables-pkg + - cmd: nftables-config-check