koji / manual / staging sync: fixes from recent sync
* The password was being set to the prod one * The allowed ip in the database was the phx2 one. ;( * The sequences were too low, prod already passed those, so increase them. Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
826c2f8c7f
commit
1cab62674b
3 changed files with 7 additions and 4 deletions
|
@ -64,6 +64,9 @@
|
|||
- db-sync-script
|
||||
|
||||
- postgresql_user: name=koji password={{ kojiPassword }}
|
||||
when: env != "staging"
|
||||
- postgresql_user: name=koji password={{ kojiStgPassword }}
|
||||
when: env == "staging"
|
||||
- postgresql_user: name=backup
|
||||
- postgresql_db: name=koji state=absent
|
||||
# buildroot_listing is excluded from the sync to save some time
|
||||
|
|
|
@ -31,9 +31,9 @@ delete from imageinfo_listing;
|
|||
|
||||
-- bump sequences (not strictly needed anymore)
|
||||
select now() as time, 'bumping sequences' as msg;
|
||||
alter sequence task_id_seq restart with 120000000;
|
||||
alter sequence repo_id_seq restart with 9000000;
|
||||
alter sequence imageinfo_id_seq restart with 900000;
|
||||
alter sequence task_id_seq restart with 130000000;
|
||||
alter sequence repo_id_seq restart with 130000000;
|
||||
alter sequence imageinfo_id_seq restart with 13000000;
|
||||
|
||||
-- truncate sessions
|
||||
select now() as time, 'truncating sessions' as msg;
|
||||
|
|
|
@ -71,7 +71,7 @@
|
|||
#host all all ::1/128 @authmethod@
|
||||
|
||||
local all all ident
|
||||
host koji koji 10.5.128.166 255.255.255.255 md5
|
||||
host koji koji 10.3.167.64 255.255.255.255 md5
|
||||
host all all 0.0.0.0 0.0.0.0 md5
|
||||
host replication all 0.0.0.0 0.0.0.0 md5
|
||||
# Note, I can't think of a reason to make this more restrictive than ipv4 but
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue