Switch koji staging sync back to db-koji01.stg
This commit is contained in:
parent
928cc3f0de
commit
fa7975df4b
2 changed files with 6 additions and 3 deletions
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
|
|
||||||
- name: drop and re-create the staging db entirely
|
- name: drop and re-create the staging db entirely
|
||||||
hosts: db-koji02.stg.phx2.fedoraproject.org
|
hosts: db-koji01.stg.phx2.fedoraproject.org
|
||||||
user: root
|
user: root
|
||||||
become: yes
|
become: yes
|
||||||
become_user: postgres
|
become_user: postgres
|
||||||
|
@ -88,6 +88,7 @@
|
||||||
# chown apache:apache *
|
# chown apache:apache *
|
||||||
# chcon unconfined_u:object_r:httpd_sys_rw_content_t:s0 *
|
# chcon unconfined_u:object_r:httpd_sys_rw_content_t:s0 *
|
||||||
# ln -s /mnt/fedora_koji_prod/koji vol/prod
|
# ln -s /mnt/fedora_koji_prod/koji vol/prod
|
||||||
|
# TODO recreate directories under /mnt/koji/compose that composer expects to exist
|
||||||
|
|
||||||
- name: bring staging services up
|
- name: bring staging services up
|
||||||
hosts: koji-stg
|
hosts: koji-stg
|
||||||
|
@ -103,8 +104,8 @@
|
||||||
- service: name=httpd state=started
|
- service: name=httpd state=started
|
||||||
- service: name=kojira state=started
|
- service: name=kojira state=started
|
||||||
|
|
||||||
# TODO remount NFS on builders
|
# TODO remount NFS on builders, composers, bodhi and odcs
|
||||||
# ansible -i /srv/web/infra/ansible/inventory/builders builders-stg:releng-stg -m shell -a "umount /mnt/fedora_koji && mount /mnt/fedora_koji"
|
# ansible -i /srv/web/infra/ansible/inventory/builders builders-stg:releng-stg:bodhi-backend-stg:odcs-backend-stg -m shell -a "umount /mnt/fedora_koji && mount /mnt/fedora_koji"
|
||||||
# TODO resart kojid
|
# TODO resart kojid
|
||||||
# ansible -i /srv/web/infra/ansible/inventory/builders builders-stg -m service -a "name=kojid state=restarted"
|
# ansible -i /srv/web/infra/ansible/inventory/builders builders-stg -m service -a "name=kojid state=restarted"
|
||||||
# TODO run createrepo for selected tags
|
# TODO run createrepo for selected tags
|
||||||
|
|
|
@ -112,3 +112,5 @@ insert into user_perms (user_id, perm_id, active, creator_id) values (
|
||||||
update users set krb_principal='{{principal}}@STG.FEDORAPROJECT.ORG' where name='{{username}}';
|
update users set krb_principal='{{principal}}@STG.FEDORAPROJECT.ORG' where name='{{username}}';
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
update users set krb_principal=replace(krb_principal, '@FEDORAPROJECT.ORG', '@STG.FEDORAPROJECT.ORG');
|
update users set krb_principal=replace(krb_principal, '@FEDORAPROJECT.ORG', '@STG.FEDORAPROJECT.ORG');
|
||||||
|
|
||||||
|
-- TODO fix kojipkgs url in external repos
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue