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:
Monty Taylor 2018-08-03 11:44:06 -05:00
parent 079c5d16ed
commit ab32644b57
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
1 changed files with 2 additions and 2 deletions

View File

@ -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