Skip to content

Commit

Permalink
Firewalld Debianize them again
Browse files Browse the repository at this point in the history
  • Loading branch information
JeGoi committed Jun 19, 2024
1 parent d91f937 commit 22e7c31
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions debian/patches/debianize.patch
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ index 64f5e73f3d..90319cfc09 100644
# Netdata is not designed to be exposed to potentially hostile networks
# See https://github.com/firehol/netdata/issues/164
diff --git a/conf/pf.conf.defaults b/conf/pf.conf.defaults
index ec736173a4..948adcb995 100644
index 0bc8cd8eca..35e43adc27 100644
--- a/conf/pf.conf.defaults
+++ b/conf/pf.conf.defaults
@@ -473,7 +473,7 @@ radiusd=enabled
Expand All @@ -24,7 +24,7 @@ index ec736173a4..948adcb995 100644
#
# services.radiusd_acct
#
@@ -538,7 +538,7 @@ httpd_aaa=enabled
@@ -518,7 +518,7 @@ httpd_aaa=enabled
# services.httpd_binary
#
# Location of the apache binary. Only necessary to change if you are not running the RPMed version.
Expand All @@ -33,7 +33,7 @@ index ec736173a4..948adcb995 100644
#
# services.snmptrapd
#
@@ -637,7 +637,7 @@ openssl_binary=/usr/bin/openssl
@@ -617,7 +617,7 @@ openssl_binary=/usr/bin/openssl
# services.arp_binary
#
# location of the arp binary. only necessary to change if you are not running the rpmed version.
Expand All @@ -43,7 +43,7 @@ index ec736173a4..948adcb995 100644
# services.netdata
#
diff --git a/conf/systemd/packetfence-api-frontend.service b/conf/systemd/packetfence-api-frontend.service
index ea8d512807..f1e80f402c 100644
index 1a6e806e30..f35ff01828 100644
--- a/conf/systemd/packetfence-api-frontend.service
+++ b/conf/systemd/packetfence-api-frontend.service
@@ -10,15 +10,15 @@ Type=notify
Expand All @@ -58,9 +58,9 @@ index ea8d512807..f1e80f402c 100644
Slice=packetfence.slice
PIDFile=/usr/local/pf/var/run/api-frontend-systemd-notify.pid
# Firewalld
-ExecStartPost=/bin/perl -I/usr/local/pf/lib -I/usr/local/pf/lib_perl/lib/perl5 '-Mpf::firewalld' '-Mpf::config' -e 'pf::firewalld::fd_api_frontend_rules("add")'
-ExecStartPre=/bin/perl -I/usr/local/pf/lib -I/usr/local/pf/lib_perl/lib/perl5 '-Mpf::firewalld' '-Mpf::config' -e 'pf::firewalld::fd_api_frontend_rules("add")'
-ExecStopPost=/bin/perl -I/usr/local/pf/lib -I/usr/local/pf/lib_perl/lib/perl5 '-Mpf::firewalld' '-Mpf::config' -e 'pf::firewalld::fd_api_frontend_rules("remove")'
+ExecStartPost=/usr/bin/perl -I/usr/local/pf/lib -I/usr/local/pf/lib_perl/lib/perl5 '-Mpf::firewalld' '-Mpf::config' -e 'pf::firewalld::fd_api_frontend_rules("add")'
+ExecStartPre=/usr/bin/perl -I/usr/local/pf/lib -I/usr/local/pf/lib_perl/lib/perl5 '-Mpf::firewalld' '-Mpf::config' -e 'pf::firewalld::fd_api_frontend_rules("add")'
+ExecStopPost=/usr/bin/perl -I/usr/local/pf/lib -I/usr/local/pf/lib_perl/lib/perl5 '-Mpf::firewalld' '-Mpf::config' -e 'pf::firewalld::fd_api_frontend_rules("remove")'

[Install]
Expand Down Expand Up @@ -742,10 +742,10 @@ index aa82f2d1c0..ff3d3ffa54 100644
ExecStop=/bin/kill $MAINPID
Restart=on-failure
diff --git a/conf/systemd/packetfence-snmptrapd.service b/conf/systemd/packetfence-snmptrapd.service
index e5437a5e09..656f695789 100644
index a4bebd42a2..9283cb12c8 100644
--- a/conf/systemd/packetfence-snmptrapd.service
+++ b/conf/systemd/packetfence-snmptrapd.service
@@ -8,7 +8,7 @@ Wants=packetfence-base.target packetfence-config.service packetfence-firewalld.s
@@ -8,14 +8,14 @@ Wants=packetfence-base.target packetfence-config.service packetfence-firewalld.s
StartLimitBurst=3
StartLimitInterval=10
Type=simple
Expand All @@ -754,6 +754,15 @@ index e5437a5e09..656f695789 100644
ExecStart=/usr/sbin/snmptrapd -f -n -c /usr/local/pf/var/conf/snmptrapd.conf -C -A -Lf /usr/local/pf/logs/snmptrapd.log -p /usr/local/pf/var/run/snmptrapd.pid -On
ExecReload=/bin/kill -HUP $MAINPID
Slice=packetfence.slice
Restart=on-failure
# Firewalld
-ExecStartPost=/bin/perl -I/usr/local/pf/lib -I/usr/local/pf/lib_perl/lib/perl5/ '-Mpf::firewalld' '-Mpf::config' -e 'pf::firewalld::fd_snmptrapd_rules("add")'
-ExecStopPost=/bin/perl -I/usr/local/pf/lib -I/usr/local/pf/lib_perl/lib/perl5/ '-Mpf::firewalld' '-Mpf::config' -e 'pf::firewalld::fd_snmptrapd_rules("remove")'
+ExecStartPost=/usr/bin/perl -I/usr/local/pf/lib -I/usr/local/pf/lib_perl/lib/perl5/ '-Mpf::firewalld' '-Mpf::config' -e 'pf::firewalld::fd_snmptrapd_rules("add")'
+ExecStopPost=/usr/bin/perl -I/usr/local/pf/lib -I/usr/local/pf/lib_perl/lib/perl5/ '-Mpf::firewalld' '-Mpf::config' -e 'pf::firewalld::fd_snmptrapd_rules("remove")'

[Install]
WantedBy=packetfence.target
diff --git a/t/venom/scenarios/cli_login/playbooks/configure.yml b/t/venom/scenarios/cli_login/playbooks/configure.yml
index 67fbfae99a..b65f191999 100644
--- a/t/venom/scenarios/cli_login/playbooks/configure.yml
Expand Down

0 comments on commit 22e7c31

Please sign in to comment.