From a045995c014ceaaf52937dcae015f61365bbe3d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Dubois?= Date: Wed, 15 Mar 2023 16:03:58 +0100 Subject: [PATCH] post-install: add the pf_states check by default in generateldif.sh script --- CHANGELOG | 1 + roles/post-install/templates/generateldif.sh.j2 | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 275dbf3..6a8e9db 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * ospf: precise in the readme file that no daemon is configured/activated * logsentry: delete unused default file that we put in /usr/share/scripts * base: set the lookup option so that resolv.conf searches /etc/hosts before querying a domain name server; the default is the opposite +* post-install: add the pf_states check by default in generateldif.sh script ### Changed diff --git a/roles/post-install/templates/generateldif.sh.j2 b/roles/post-install/templates/generateldif.sh.j2 index fa76eab..6355039 100755 --- a/roles/post-install/templates/generateldif.sh.j2 +++ b/roles/post-install/templates/generateldif.sh.j2 @@ -147,6 +147,13 @@ ServiceName: packetfilter ServiceType: firewall ServiceVersion: packetfilter +dn: ServiceName=pf_states,EvoComputerName=${EvoComputerName},ou=computer,dc=evolix,dc=net +NagiosEnabled: TRUE +objectClass: EvoService +ServiceName: pf_states +ServiceType: firewall +ServiceVersion: pf_states + EOT if grep -Eq 'sd.*RAID' /var/run/dmesg.boot; then