About this task
The passwords or secrets used during the installation of Web Client are converted into Docker secrets. These Docker secrets are used by the containers for communicating with remote systems such as the Plant Applications database, Apache CouchDB, RabbitMQ, and UAA.After Web Client installation, over a period of time, if the passwords / secrets used during the installation time become are changed or reset at the source, you can update the Docker containers with the new passwords or secrets.
Procedure
- Access the wcrepair.sh file in the uc-ansible-installer folder.
- Provide execution permissions to wcrepair.sh file by running the following command:
sudo chmod +x your/pathto/installer/uc-ansible-installer/wcrepair.sh
- Run the wcrepair.sh file by running one of the following commands:
- If you are running this utility directly on the Web Client node:
<installer path>/uc-ansible-installer/sudo ./wcrepair.sh -l -pkey -reset
- If you are running this utility remotely on the Web Client node:
<installer path>/uc-ansible-installer/sudo ./wcrepair.sh -r -pkey -reset
- If you run this utility remotely, enter the details of the Web Client node.
The server name, database name, and database username of the Plant Applications SQL database appear. A message appears, asking you to enter the new password.
- If you want to reset the Plant Applications database password, enter the new password. If not, press Enter.
The host name, database name, node name, and username of Apache CouchDB appear. A message appears, asking you to enter the new password.
- If you want to reset the Apache CouchDB password, enter the new password. If not, press Enter.
The Message Bridge server name and RabbitMQ username appear. A message appears, asking you to enter the new password for RabbitMQ.
- If you want to reset the RabbitMQ password, enter the new password. If not, press Enter.
The host name and username of the UAA service appears. A message appears, asking you to enter the new password.
- If you want to reset the UAA password, enter the new password. If not, press Enter.
Docker secrets are created based on the values you entered, and the Docker stacks are redeployed so that the containers use the new passwords.