From d4194430f157ff9b6e72f6a35a7272fcf45325d5 Mon Sep 17 00:00:00 2001 From: Pierre Riteau Date: Thu, 6 Apr 2023 18:04:24 +0200 Subject: [PATCH] Fix bootstrap failure with some registry passwords This is necessary to avoid a failure if the password contains whitespace characters. If the password was set to "foo bar baz", the role would fail with: cephadm: error: unrecognized arguments: bar baz Quotes are applied to the other registry arguments for consistency. --- roles/cephadm/tasks/bootstrap.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/cephadm/tasks/bootstrap.yml b/roles/cephadm/tasks/bootstrap.yml index 312e9b8..da873fd 100644 --- a/roles/cephadm/tasks/bootstrap.yml +++ b/roles/cephadm/tasks/bootstrap.yml @@ -21,9 +21,9 @@ --ssh-user "{{ cephadm_ssh_user }}" {% endif %} {% if cephadm_registry_url | length > 0 %} - --registry-url={{ cephadm_registry_url }} - --registry-username={{ cephadm_registry_username }} - --registry-password={{ cephadm_registry_password }} + --registry-url "{{ cephadm_registry_url }}" + --registry-username "{{ cephadm_registry_username }}" + --registry-password "{{ cephadm_registry_password }}" {% endif %} --skip-pull {% if cephadm_fsid | length > 0 %}