From ab32644b5722ee580a581b931cf2a257c4adbf31 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Fri, 3 Aug 2018 11:44:06 -0500 Subject: [PATCH] Add .gerrit_db.cfg to project rename playbook We need to tell mysql where the file with the credentials is. Change-Id: I185fd83f187c94074a163565f2328e754b785b50 --- playbooks/rename_repos.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/rename_repos.yaml b/playbooks/rename_repos.yaml index 562106a92f..121374890b 100644 --- a/playbooks/rename_repos.yaml +++ b/playbooks/rename_repos.yaml @@ -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