From 65bc0b1bb33ca45d262aabd64c87b87324fdf7e6 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Tue, 12 Mar 2019 22:57:31 +0100 Subject: [PATCH] staging-sync/koji: connect to postgres db when restoring production db dump --- playbooks/manual/staging-sync/koji.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/playbooks/manual/staging-sync/koji.yml b/playbooks/manual/staging-sync/koji.yml index 42f0ae669f..f36390fa67 100644 --- a/playbooks/manual/staging-sync/koji.yml +++ b/playbooks/manual/staging-sync/koji.yml @@ -69,7 +69,6 @@ - postgresql_user: name=koji password={{ kojiPassword }} - postgresql_db: name=koji state=absent - - postgresql_db: name=koji owner=koji # 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! @@ -80,7 +79,7 @@ mbuffer -q -s 16M -m 256M -l /tmp/mbuffer-xz-to-sed.log | sed '/COPY buildroot_listing /,/\./d' | mbuffer -q -s 16M -m 512M -l /tmp/mbuffer-sed-to-psql.log | - psql -v ON_ERROR_STOP=1 koji + psql -v ON_ERROR_STOP=1 - name: repoint all the prod rpm entries at the secondary volume (and other stuff) shell: psql -1 -v ON_ERROR_STOP=1 koji