staging-sync/koschei: Drop support for BDR database
This commit is contained in:
parent
45f170f053
commit
01453fc961
1 changed files with 0 additions and 27 deletions
|
@ -37,39 +37,14 @@
|
|||
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
||||
|
||||
tasks:
|
||||
# - shell: >
|
||||
# koschei-admin psql <<< "
|
||||
# BEGIN;
|
||||
# SET LOCAL bdr.permit_ddl_locking = true;
|
||||
# UPDATE base_package SET all_blocked = true;
|
||||
# UPDATE collection SET latest_repo_id = null, latest_repo_resolved = null;
|
||||
# DROP TABLE buildroot_problem;
|
||||
# DROP TABLE package CASCADE;
|
||||
# DROP TABLE build CASCADE;
|
||||
# DROP TABLE applied_change CASCADE;
|
||||
# DROP TABLE unapplied_change CASCADE;
|
||||
# DROP TABLE dependency CASCADE;
|
||||
# DROP TABLE koji_task CASCADE;
|
||||
# DROP TABLE resolution_change CASCADE;
|
||||
# DROP TABLE resolution_problem CASCADE;
|
||||
# DROP TABLE copr_rebuild_request CASCADE;
|
||||
# DROP TABLE copr_resolution_change CASCADE;
|
||||
# DROP TABLE copr_rebuild CASCADE;
|
||||
# DROP TABLE scalar_stats CASCADE;
|
||||
# DROP TABLE resource_consumption_stats CASCADE;
|
||||
# COMMIT;
|
||||
# "
|
||||
# when: 'pgbdr' in koschei_pgsql_hostname
|
||||
- postgresql_db: name=koschei state=absent
|
||||
become: yes
|
||||
become_user: postgres
|
||||
delegate_to: "{{ koschei_pgsql_hostname }}"
|
||||
when: "'pgbdr' not in koschei_pgsql_hostname"
|
||||
- postgresql_db: name=koschei owner=koscheiadmin
|
||||
become: yes
|
||||
become_user: postgres
|
||||
delegate_to: "{{ koschei_pgsql_hostname }}"
|
||||
when: "'pgbdr' not in koschei_pgsql_hostname"
|
||||
- command: koschei-admin create-db
|
||||
- command: >
|
||||
koschei-admin create-collection f29
|
||||
|
@ -77,10 +52,8 @@
|
|||
--target f29
|
||||
--bugzilla-product Fedora
|
||||
--bugzilla-version rawhide
|
||||
when: "'pgbdr' not in koschei_pgsql_hostname"
|
||||
- command: >
|
||||
koschei-admin create-group php
|
||||
when: "'pgbdr' not in koschei_pgsql_hostname"
|
||||
|
||||
- name: bring koschei staging services up
|
||||
hosts: koschei_backend_stg:koschei_web_stg
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue