Replace zuul cli command with zuul-admin
The zuul cli command is deprecated and creates a warning when it is being used, replace it with zuul-admin. Change-Id: Ifcc891f5da6f16824a65dc8dbf560b5d4c6ee9fc
This commit is contained in:
parent
8a90e1af9a
commit
aa7577a646
@ -70,10 +70,10 @@
|
||||
- include_vars: "{{ repolist }}"
|
||||
|
||||
- name: Backup the zuul keys before we modify them
|
||||
command: "docker exec zuul-scheduler_scheduler_1 zuul export-keys /var/lib/zuul/zuul-keys-backup.json"
|
||||
command: "docker exec zuul-scheduler_scheduler_1 zuul-admin export-keys /var/lib/zuul/zuul-keys-backup.json"
|
||||
|
||||
- name: Copy zuul keys from old to new project
|
||||
command: "docker exec zuul-scheduler_scheduler_1 zuul copy-keys gerrit {{ item.old }} gerrit {{ item.new }}"
|
||||
command: "docker exec zuul-scheduler_scheduler_1 zuul-admin copy-keys gerrit {{ item.old }} gerrit {{ item.new }}"
|
||||
loop: "{{ repos }}"
|
||||
|
||||
- hosts: review
|
||||
@ -146,5 +146,5 @@
|
||||
- include_vars: "{{ repolist }}"
|
||||
|
||||
- name: Remove old zuul project keys
|
||||
command: "docker exec zuul-scheduler_scheduler_1 zuul delete-keys gerrit {{ item.old }}"
|
||||
command: "docker exec zuul-scheduler_scheduler_1 zuul-admin delete-keys gerrit {{ item.old }}"
|
||||
loop: "{{ repos }}"
|
||||
|
@ -56,7 +56,7 @@
|
||||
hour: 0
|
||||
# Note we backup to /var/lib/zuul because that is what we have bind
|
||||
# mounted in the container and we are operating relative to that context
|
||||
job: docker exec zuul-scheduler_scheduler_1 zuul export-keys /var/lib/zuul/zuul-keys-backup.json
|
||||
job: docker exec zuul-scheduler_scheduler_1 zuul-admin export-keys /var/lib/zuul/zuul-keys-backup.json
|
||||
|
||||
- name: Install logging config
|
||||
copy:
|
||||
|
Loading…
Reference in New Issue
Block a user