Add .gerrit_db.cfg to project rename playbook
We need to tell mysql where the file with the credentials is. Change-Id: I185fd83f187c94074a163565f2328e754b785b50
This commit is contained in:
parent
079c5d16ed
commit
ab32644b57
@ -9,11 +9,11 @@
|
||||
shell: invoke-rc.d gerrit stop
|
||||
|
||||
- name: Update account_project_watches in gerrit database
|
||||
shell: echo 'update account_project_watches set project_name = "{{ item.new }}" where project_name = "{{ item.old }}";' | mysql reviewdb
|
||||
shell: echo 'update account_project_watches set project_name = "{{ item.new }}" where project_name = "{{ item.old }}";' | mysql reviewdb --defaults-file=/root/.gerrit_db.cfg
|
||||
with_items: "{{ repos }}"
|
||||
|
||||
- name: Update changes in gerrit database
|
||||
shell: echo 'update changes set dest_project_name = "{{ item.new }}", created_on = created_on where dest_project_name = "{{ item.old }}";' | mysql reviewdb
|
||||
shell: echo 'update changes set dest_project_name = "{{ item.new }}", created_on = created_on where dest_project_name = "{{ item.old }}";' | mysql reviewdb --defaults-file=/root/.gerrit_db.cfg
|
||||
with_items: "{{ repos }}"
|
||||
|
||||
- name: Rename git repos on gerrit
|
||||
|
Loading…
Reference in New Issue
Block a user