Fixes issues with special characters in password.

Post install tasks in os_ironic role don't quote password
values, having shell special characters in password is
resulting in failed runs.

Closes-Bug: 1647248
Change-Id: If7fefb112ffdee8d9ee162b1f0bc0bbe10528e3e
This commit is contained in:
Uros Orozel 2016-12-05 14:06:36 +11:00
parent 45a295170f
commit 4bc7ac72d8

View File

@ -41,7 +41,7 @@
command: >
{{ ironic_bin }}/swift {{ keystone_service_adminuri_insecure | bool | ternary('--insecure','') }}
--os-username "service:{{ glance_service_user_name }}"
--os-password {{ glance_service_password }}
--os-password "{{ glance_service_password }}"
--os-auth-url {{ keystone_service_internalurl }}
--os-identity-api-version {{ keystone_service_internalurl.split('/v')[-1] }}
post -m temp-url-key:{{ ironic_swift_temp_url_secret_key }}
@ -57,7 +57,7 @@
shell: >
{{ ironic_bin }}/swift {{ keystone_service_adminuri_insecure | bool | ternary('--insecure','') }}
--os-username "service:{{ glance_service_user_name }}"
--os-password {{ glance_service_password }}
--os-password "{{ glance_service_password }}"
--os-auth-url {{ keystone_service_internalurl }}
--os-identity-api-version {{ keystone_service_internalurl.split('/v')[-1] }}
stat -v | awk '/StorageURL\:/ {print $2}'