Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add updates to RSCT documentation #112

Merged
merged 1 commit into from
Mar 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions docs/rsct-deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ These instructions will help you deploy the RSCT/RMC daemonset on an OCP cluster

Use the instructions provided [here](https://github.com/ocp-power-automation/ocp4-playbooks#setting-up-inventory) to setup the inventory for your cluster. For deploying RSCT, you would only need to set the bastion host details in the inventory.

Provide the hostname or the IP address of the bastion node and the user name in the inventory file. An example of the inventory file would look like this:

```
$ cat inventory
[bastion]
192.168.26.155 ansible_connection=ssh ansible_user=root
```

**2. Set up the variables**

Expand All @@ -24,6 +31,20 @@ The ocp-customization [module](https://github.com/ocp-power-automation/ocp4-play
ansible-playbook -i inventory -e @rmc_vars.yaml playbooks/customization.yaml
```

Use the following command in case a non-root user is specified in the inventory file. Upon running the playbook, enter the password of the user when prompted for the "BECOME password".

```
ansible-playbook -i inventory -e @rmc_vars.yaml playbooks/customization.yaml -K --become
```

Note: While running the playbook as a non-root user, you may see an error such as: "oc: command not found". Since the command to run the playbook uses the `become` privilege escalataion option, such errors may arise when the PATH environment variable for `sudo` may not be the same as your user. You can rectify this by modifying the `Defaults secure_path` section in the sudoers file.

Example: If the `oc` client binary is present in the /usr/local/bin directory, run the `visudo` command and navigate to the `Defaults secure_path` section. Set the PATH by adding `/usr/local/bin` as given below, save the file and re-run the ansible playbook:

```
Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
```

**4. Post deployment checks**

After the playbook execution completes, the daemonset and pods should be available in the `powervm-rmc` namespace on the cluster. Run the following command to list them:
Expand Down