Step 3: Provide required credentials for Omnia
Omnia provides an additional utility playbook called get_config_credentials.yml. This playbook upon execution creates an input file called omnia_config_credentials.yml in the /opt/omnia/input/project_default folder.
In this input file, you can preemptively provide all types of mandatory and optional credentials required by Omnia during its execution. Otherwise, you’ll be prompted to enter them during playbook execution.
Prerequisites
Ensure that the
omnia_corecontainer is up and running.Ensure that the
/opt/omnia/input/project_default/software_config.jsonfile is updated with the packages that you want on your cluster.
Task performed by the playbook
Creates an input file called omnia_config_credentials.yml in the /opt/omnia/input/project_default folder.
Execute the playbook
To execute the playbook, run the following command:
ssh omnia_core
cd /omnia/utils/credential_utility
ansible-playbook get_config_credentials.yml
Things to keep in mind
While executing any Omnia playbook which requires certain credentials, you’ll now see a prompt to enter them during playbook execution.
Credential fields which have the tag
mandatorycannot be left empty. If themandatorypasswords are not provided or incorrect, the playbook execution will stop and exit while encrypting the credentials file in the background.Credential fields which have the tag
optionalcan be skipped. Even if no input is provided, playbook execution will continue.Passwords provided by you will be hidden. You must enter the password for a second time to confirm.
This utility also supports using tags to provide credentials for specific features or packages. For example, you can use
--tags provisionwhile executing the playbook to only bring up the credentials required to provision the cluster nodes.
Post execution
After the playbook has been executed, verify if the omnia_config_credentials.yml input file is present in the /opt/omnia/input/project_default folder.
Provide all required mandatory credentials for the cluster. See the table below to know more:
Note
By default, the omnia_config_credentials.yml input file is encrypted. Use the below command to decrypt the file:
ansible-vault view omnia_config_credentials.yml --vault-password-file .omnia_config_credentials_key
Credential Name |
Mandatory or Optional |
Parameter |
Details |
|---|---|---|---|
Provision password |
Mandatory |
|
|
BMC (iDRAC) username |
Mandatory |
|
Username for BMC (iDRAC) access. The same credentials must be used across all servers. |
BMC (iDRAC) password |
Mandatory |
|
|
Pulp container password |
Mandatory |
|
|
MySQL DB username |
Mandatory |
|
|
MySQL DB password |
Mandatory |
|
|
MySQL DB root password |
Mandatory |
|
|
Docker username |
Optional |
|
|
Docker password |
Optional |
|
|
Slurm database password |
Optional |
|
|
OpenLDAP database username |
Optional |
|
|
OpenLDAP database password |
Optional |
|
|
Minio S3 bucket user name |
Mandatory |
|
|
Minio S3 bucket password |
Mandatory |
|
|
Caution
Once the cluster is up and running, you may only modify the bmc_username and bmc_password fields in the omnia_config_credentials.yml input file. To make these changes, use the command provided below. Do not alter any other fields in the file, as this may lead to unexpected failures.
ansible-vault edit omnia_config_credentials.yml --vault-password-file .omnia_config_credentials_key
If you have any feedback about Omnia documentation, please reach out at omnia.readme@dell.com.