@@ -64,29 +64,49 @@ Access via console
6464If you need to use console access, passwords must be enabled there are a
6565couple ways to enable this depending on how the IPA image was created:
6666
67- ironic-python-agent-builder
68- ~~~~~~~~~~~~~~~~~~~~~~~~~~~
67+ ironic-python-agent-builder: dynamic-login
68+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6969Users wishing to use password access can be add the dynamic-login [0 ]_ or the
7070devuser element [1 ]_
7171
7272The dynamic-login element allows the operator to change the root password
7373dynamically when the image boots. Kernel command line parameters
7474are used to do this.
7575
76- dynamic-login element example: :
76+ Generate a password hash with following command :
7777
78- Generate a ENCRYPTED_PASSWORD with following command:
79- .. code-block:: console
80- openssl passwd -1 -stdin | sed 's/\$/\$\$/g'
78+ .. code-block :: console
8179
82- Add rootpwd="$ENCRYPTED_PASSWORD" value on the kernel_append_params setting in /etc/ironic/ironic.conf
83- Restart the ironic-conductor with the command service ironic-conductor restart
80+ $ openssl passwd -1 -stdin | sed 's/\$/\$\$/g'
8481
85- Users can also be added to DIB built IPA images with the devuser element [1 ]_
82+ Add ``rootpwd="<openssl output>" `` value on the ``kernel_append_params ``
83+ setting in the Ironic configuration file (``/etc/ironic/ironic.conf ``).
84+ Restart the ironic-conductor e.g. with
8685
87- Install `` ironic-python-agent-builder `` following the guide [ 2 ]_
86+ .. code-block :: console
8887
89- Example::
88+ $ sudo systemctl restart ironic-conductor
89+
90+ Alternatively, you can use the contents of the SSH public key.
91+
92+ .. warning ::
93+
94+ * The ``sed `` command is used to escape the ``$ `` symbols in the
95+ configuration file.
96+
97+ * The quotation marks around the value are mandatory.
98+
99+ * Only 1 password or 1 SSH key is supported.
100+
101+ ironic-python-agent-builder: devuser
102+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
103+
104+ Users can also be added to DIB built IPA images with the devuser element [1 ]_.
105+ Install ``ironic-python-agent-builder `` following the guide [2 ]_.
106+
107+ Example:
108+
109+ .. code-block :: bash
90110
91111 export DIB_DEV_USER_USERNAME=username
92112 export DIB_DEV_USER_PWDLESS_SUDO=yes
0 commit comments