Add .gerrit_db.cfg to project rename playbook

We need to tell mysql where the file with the credentials is.

Change-Id: I185fd83f187c94074a163565f2328e754b785b50
changes/20/588620/1
Monty Taylor 5 years ago
parent 079c5d16ed
commit ab32644b57
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594

@ -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…
Cancel
Save