Skip to content

Commit 16780de

Browse files
Lakshmipathidarora
authored andcommitted
fix: Ensure fail2ban, postgresql, auditd disabled during first boot
Signed-off-by: Lakshmipathi <lakshmi@supabase.io>
1 parent b37d71f commit 16780de

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

ansible/tasks/setup-fail2ban.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,8 @@
5757
systemd:
5858
name: fail2ban
5959
state: restarted
60+
61+
- name: fail2ban - disable service
62+
systemd:
63+
enabled: no
64+
daemon_reload: yes

ebssurrogate/scripts/surrogate-bootstrap.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,9 @@ function update_systemd_services {
211211

212212
# Disable postgresql service during first boot.
213213
rm -f /mnt/etc/systemd/system/multi-user.target.wants/postgresql.service
214+
215+
# Disable auditd
216+
rm -f /mnt/etc/systemd/system/multi-user.target.wants/auditd.service
214217
}
215218

216219

0 commit comments

Comments
 (0)