Configure the secrets (2 of 2)

Follow below steps for configuring secrets to provide secure access to the RHOSP service pods.

  1. Copy sample config from step #2 of section 3.2. Providing secure access to the Red Hat OpenStack Platform services of deployment guide.

    or

    Use ctlplane-secret.sample file.

  2. Create a copy of sample config to configure secret for openstack services.

    cp ctlplane-secret.sample osp-ng-ctlplane-secret.yaml
  3. Generate base64 password string for your desired password.

    You may change the string password in the below command with your desired password.

    echo -n password | base64
    Sample output
    cGFzc3dvcmQ=
  4. Replace your base64 password string in the ctlplane secret file.

    sed -i 's/<base64_password>/cGFzc3dvcmQ=/g' osp-ng-ctlplane-secret.yaml
    sed -i 's/<base64_password_heat>/cGFzc3dvcmQ=/g' osp-ng-ctlplane-secret.yaml
  5. Create the Secret:

    oc create -f osp-ng-ctlplane-secret.yaml
  6. Verify that the Secret was created:

    oc describe secret osp-secret -n openstack