Change a user name and password for a bare metal host¶
This section describes how to change a user name and password of a bare metal
host using an existing BareMetalHostCredential
object.
To change a user name and password for a bare metal host:
Open the
BareMetalHostCredential
object of the required bare metal host for editing.In the
spec
section:Update the
username
fieldReplace
password.name: <secretName>
withpassword.value: <hostPasswordInPlainText>
For example:
spec: username: admin password: value: superpassword
This action triggers creation of a new
Secret
object with updated credentials. After that, sensitivepassword
data is replaced with the newSecret
object name. For a detailed workflow description, see API Reference: BareMetalHostCredential.Caution
Adding a password value is mandatory for a user name change. You can either create a new password value or copy the existing one from the related
Secret
object.Caution
Changing a user name in the related
Secret
object does not automatically update theBareMetalHostCredential
object. Therefore, Mirantis recommends updating credentials only using the theBareMetalHostCredential
object.