From fc2564e7bed2370fedf30734c851f4811c13a115 Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Fri, 8 May 2020 12:07:16 -0400 Subject: [PATCH] Update ip lists --- pillar/firewall/addfirewall.sh | 2 +- setup/so-functions | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pillar/firewall/addfirewall.sh b/pillar/firewall/addfirewall.sh index eadb31fa2..084006f5a 100644 --- a/pillar/firewall/addfirewall.sh +++ b/pillar/firewall/addfirewall.sh @@ -8,6 +8,6 @@ IPADDRESS=$2 if grep -q $2 "/opt/so/saltstack/pillar/firewall/$1.sls"; then echo "Firewall Rule Already There" else - echo " - $2" >> /opt/so/saltstack/pillar/firewall/$1.sls + echo " - $2" >> /opt/so/saltstack/pillar/firewall/$1.sls salt-call state.apply firewall queue=True fi diff --git a/setup/so-functions b/setup/so-functions index 0e8c650ca..6ec9815de 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -718,7 +718,9 @@ firewall_generate_templates() { " alias:"\ " $i:"\ " ips:" \ - " - 127.0.0.1"\ + " delete:"\ + " allow:"\ + " - 127.0.0.1"\ "" > "$firewall_pillar_path"/$i.sls echo "Added $i Template" done