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
This commit is contained in:
Michal Nasiadka 2023-10-26 11:39:30 +02:00
parent 3d42298619
commit c23c913fc2

View File

@ -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