Skip to content

Commit 3b62d09

Browse files
committed
Attempt to fix the gid collision
1 parent 5984bb4 commit 3b62d09

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

‎ansible/tasks/setup-postgres.yml‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,26 @@
292292
state: 'directory'
293293
become: true
294294

295+
# Pin the systemd-coredump group/user before installing the package: its
296+
# postinst creates them with a dynamically-assigned system gid/uid (whatever
297+
# is next free at that point), which is not reproducible across AMI variants
298+
# that install a different set of packages before this point - it has
299+
# collided with the vector group's own pinned gid (989) on some builds.
300+
- name: add systemd-coredump system group
301+
ansible.builtin.group:
302+
name: systemd-coredump
303+
gid: 986
304+
system: yes
305+
306+
- name: add systemd-coredump system user
307+
ansible.builtin.user:
308+
name: systemd-coredump
309+
uid: 986
310+
group: systemd-coredump
311+
system: yes
312+
create_home: false
313+
shell: /usr/sbin/nologin
314+
295315
# Required for this (plus CoredumpFilter= in postgresql.service and the
296316
# storage limits below) to do anything at all: without systemd-coredump,
297317
# core_pattern stays at the kernel's plain "core" default and none of this

0 commit comments

Comments
 (0)