From c23c913fc2b0fddb30f73ae2a00b051cb2c7086b Mon Sep 17 00:00:00 2001 From: Michal Nasiadka Date: Thu, 26 Oct 2023 11:39:30 +0200 Subject: [PATCH] docs: improve rootpwd password generation command Currently the command is a bit misleading because you need to escape dollar ($) signs. Command copied from DIB dynamic-log element docs [1]. [1]: https://docs.openstack.org/diskimage-builder/latest/elements/dynamic-login/README.html Change-Id: I7d5dc60aec373372f8faae4242a79f18d8a26d14 --- doc/source/admin/troubleshooting.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/source/admin/troubleshooting.rst b/doc/source/admin/troubleshooting.rst index fcc1f6662..b06d84553 100644 --- a/doc/source/admin/troubleshooting.rst +++ b/doc/source/admin/troubleshooting.rst @@ -75,7 +75,10 @@ are used to do this. dynamic-login element example:: - Generate a ENCRYPTED_PASSWORD with the openssl passwd -1 command + Generate a ENCRYPTED_PASSWORD with following command: + .. code-block:: console + openssl passwd -1 -stdin | sed 's/\$/\$\$/g' + Add rootpwd="$ENCRYPTED_PASSWORD" value on the kernel_append_params setting in /etc/ironic/ironic.conf Restart the ironic-conductor with the command service ironic-conductor restart