Skip to content

Commit f21db54

Browse files
committed
chore: remove service dependencies from kong
1 parent bd0617d commit f21db54

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

ansible/files/fail2ban_config/jail-postgresql.conf.j2

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ enabled = true
33
port = 5432
44
protocol = tcp
55
filter = postgresql
6-
logpath = /var/log/postgresql/postgresql.csv
6+
logpath = /var/log/postgresql/auth-failures.csv
77
maxretry = 3
8+
ignoreip = 192.168.0.0/16 172.17.1.0/20

ansible/files/kong_config/kong.service.j2

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[Unit]
22
Description=Kong server
33
After=postgrest.service gotrue.service adminapi.service
4-
Wants=postgrest.service gotrue.service adminapi.service
54

65
[Service]
76
Type=forking

ansible/tasks/setup-fail2ban.yml

+9
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@
1717
dest: /etc/fail2ban/jail.local
1818

1919
# postgresql
20+
- name: create watch files
21+
become: yes
22+
become_user: postgres
23+
shell:
24+
cmd: |
25+
chmod g+w /var/log/postgresql
26+
touch /var/log/postgresql/auth-failures.csv
27+
chmod g+w /var/log/postgresql/auth-failures.csv
28+
2029
- name: import jail.d/postgresql.conf
2130
template:
2231
src: files/fail2ban_config/jail-postgresql.conf.j2

common.vars.pkr.hcl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
postgres-version = "15.1.0.57"
1+
postgres-version = "15.1.0.58-rc0.services"

0 commit comments

Comments
 (0)