From 23479e7183305c0643ac74635f3f46c9efe5c45f Mon Sep 17 00:00:00 2001 From: Manoel Benedito Neto Date: Mon, 26 Jun 2023 11:47:46 -0300 Subject: [PATCH] Fix bootstrap failure for subclouds w/ complex passwords This commit adds single quotes around user password parameter value to ensure that complex passwords are valid when user option setup script is executed by puppet bootstrap. Test Plan: PASS: Full build, system install, bootstrap and unlock DC system, with one subcloud bootstrapped and unlocked with active enabled available status. PASS: Add, bootstrap, manage and unlock a subcloud with a complex password containing special characters, numbers, capital letters and an open parenthesis at the end of the sentence. Closes-Bug: 2025292 Change-Id: Ia5430084bf6b16c78594a2483f2b88ec9b18f36a Signed-off-by: Manoel Benedito Neto --- puppet-manifests/src/modules/openstack/manifests/keystone.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/puppet-manifests/src/modules/openstack/manifests/keystone.pp b/puppet-manifests/src/modules/openstack/manifests/keystone.pp index 05e99c856..53a133e93 100644 --- a/puppet-manifests/src/modules/openstack/manifests/keystone.pp +++ b/puppet-manifests/src/modules/openstack/manifests/keystone.pp @@ -201,7 +201,7 @@ define openstack::keystone::user::option ( exec { "Set user ${username} option ${option} to ${option_value}": command => @("EOC"/L), /usr/local/bin/set_keystone_user_option.sh \ - ${admin_username} ${admin_password} ${auth_url} ${username} ${option} ${option_value} + ${admin_username} '${admin_password}' ${auth_url} ${username} ${option} ${option_value} | EOC logoutput => true, provider => shell,