From 4cea26f1854e385474647c0cbe0e39f508a3f5b6 Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Wed, 31 Jul 2024 12:20:47 -0500 Subject: [PATCH] update dynamic-login to mention the sshkey option The docs mentioned using the SSH key option but didn't say what it was. Added it and reflowed the section to make it more clear that the options are one or the other and the steps that need to happen. Change-Id: I8663379d51e5e946915cb9236ccbccb26660bcc4 --- doc/source/admin/troubleshooting.rst | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/doc/source/admin/troubleshooting.rst b/doc/source/admin/troubleshooting.rst index dbd5e5296..ef7e02baa 100644 --- a/doc/source/admin/troubleshooting.rst +++ b/doc/source/admin/troubleshooting.rst @@ -69,8 +69,8 @@ ironic-python-agent-builder: dynamic-login Users wishing to use password access can be add the dynamic-login [0]_ or the devuser element [1]_ -The dynamic-login element allows the operator to change the root password -dynamically when the image boots. Kernel command line parameters +The dynamic-login element allows the operator to change the root password or +SSH key dynamically when the image boots. Kernel command line parameters are used to do this. Generate a password hash with following command: @@ -79,7 +79,8 @@ Generate a password hash with following command: $ openssl passwd -1 -stdin | sed 's/\$/\$\$/g' -Add ``rootpwd=""`` value on the ``kernel_append_params`` +Add ``rootpwd=""`` value or add ``sshkey=""`` +on the ``kernel_append_params`` setting in the Ironic configuration file (``/etc/ironic/ironic.conf``). Restart the ironic-conductor e.g. with @@ -87,8 +88,6 @@ Restart the ironic-conductor e.g. with $ sudo systemctl restart ironic-conductor -Alternatively, you can use the contents of the SSH public key. - .. warning:: * The ``sed`` command is used to escape the ``$`` symbols in the