From 8da3e395b2bbf239474fb8d10e35e7cd0d068a16 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Fri, 4 Jul 2025 19:42:50 +0200 Subject: [PATCH] postgresql: Install mbuffer package mbuffer is required on db-koji for staging-sync playbook, but installing it on all DB servers doesn't hurt. --- playbooks/manual/staging-sync/koji.yml | 1 - roles/postgresql_server/tasks/main.yml | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/playbooks/manual/staging-sync/koji.yml b/playbooks/manual/staging-sync/koji.yml index 5f068a6173..f82da33149 100644 --- a/playbooks/manual/staging-sync/koji.yml +++ b/playbooks/manual/staging-sync/koji.yml @@ -68,7 +68,6 @@ - postgresql_user: name=backup - postgresql_db: name=koji state=absent # buildroot_listing is excluded from the sync to save some time -# TODO: install mbuffer on db-koji.stg - name: Import the prod db. This will take quite a while. Go get a snack! ansible.builtin.shell: > curl -s -S https://infrastructure.fedoraproject.org/infra/db-dumps/koji.dump.xz | diff --git a/roles/postgresql_server/tasks/main.yml b/roles/postgresql_server/tasks/main.yml index de025d1e09..9c0b05649e 100644 --- a/roles/postgresql_server/tasks/main.yml +++ b/roles/postgresql_server/tasks/main.yml @@ -22,6 +22,7 @@ - postgresql-plpython3 - python3-psycopg2 - pxz + - mbuffer when: ansible_distribution_major_version|int >= 29 and ansible_distribution == 'Fedora' and ansible_cmdline.ostree is not defined tags: - packages @@ -36,6 +37,7 @@ - postgresql-plpython3 - python3-psycopg2 - pxz + - mbuffer when: ansible_distribution_major_version|int >= 8 and ansible_distribution == 'RedHat' and ansible_cmdline.ostree is not defined tags: - packages