Rename ironic database password during upgrades
'ironic_galera_password' was renamed to 'ironic_container_mysql_password' in change I399211c139d6388ab56b97b809f93d4936907c7a. Update the user-secrets-adjustment upgrade playbook to handle renaming within the user's secrets file and ensure that the original value is kept. Change-Id: Idca153bc474b415316ce59a5e7068d030af81fe9 Closes-Bug: 1625081
This commit is contained in:
parent
cd48460572
commit
57255a164d
@ -22,6 +22,14 @@
|
||||
- name: Read example user secrets file
|
||||
shell: "grep '^[a-zA-Z]' {{ playbook_dir }}/../../../etc/openstack_deploy/user_secrets.yml"
|
||||
register: secrets
|
||||
- name: Rename changed secrets
|
||||
lineinfile:
|
||||
dest: "/etc/openstack_deploy/{{ _osa_secrets_file_name }}"
|
||||
regexp: "^{{ item.old_name }}: (.*)$"
|
||||
line: "{{ item.new_name }}: \\1"
|
||||
backrefs: yes
|
||||
with_items:
|
||||
- { old_name: "ironic_galera_password", new_name: "ironic_container_mysql_password" }
|
||||
- name: Read user secrets file
|
||||
shell: "grep '^[a-zA-Z]' /etc/openstack_deploy/{{ _osa_secrets_file_name }}"
|
||||
register: user_secrets
|
||||
|
Loading…
Reference in New Issue
Block a user