Skip to content

Commit 696afe4

Browse files
committed
fix: mv to stage 2
1 parent 433827d commit 696afe4

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

ansible/tasks/setup-postgres.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,17 @@
293293
when:
294294
- stage2_nix or (stage2_nix and qemu_mode is defined)
295295

296+
- name: Create postgresql log directory for stage2_nix
297+
become: true
298+
ansible.builtin.file:
299+
group: 'postgres'
300+
owner: 'postgres'
301+
path: '/var/log/postgresql'
302+
state: 'directory'
303+
mode: '0750'
304+
when:
305+
- stage2_nix
306+
296307
- name: Restart Postgres Database without Systemd
297308
become: true
298309
become_user: 'postgres'

ebssurrogate/scripts/surrogate-bootstrap-nix.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -337,10 +337,6 @@ function clean_system {
337337
# https://github.com/fail2ban/fail2ban/issues/1593
338338
touch /mnt/var/log/auth.log
339339

340-
# Note: pgbouncer, postgresql, and wal-g log setup moved to ansible tasks
341-
# (setup-pgbouncer.yml, setup-postgres.yml, setup-wal-g.yml)
342-
# because those users don't exist in the Stage 1 base image
343-
344340
# Create Sysstat directory for SAR
345341
mkdir /mnt/var/log/sysstat
346342

0 commit comments

Comments
 (0)