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

Update README.md #29

Merged
merged 2 commits into from
Jun 20, 2024
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
46 changes: 45 additions & 1 deletion openstack/intel-worker/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,54 @@
# Intel Worker Playbook: Getting Started Guide

### Prerequisites:
## Prerequisites:
* OCP cluster has to be in `multi` payload. If its not in `multi` payload the worker will not get added to power based ocp cluster.
* Here is the details of upgrading to multi payload [link](https://docs.openshift.com/container-platform/4.15/updating/updating_a_cluster/migrating-to-multi-payload.html#migrating-to-multi-payload)
* ```oc adm upgrade --to-multi-arch```

### Getting Started with Ansible and OpenStack

1. Create a virtual environment

```
python3 -m venv $(pwd)
```

2. Activate the environemnt

```
source bin/activate
```

3. Install the openstack.cloud collection

```
ansible-galaxy collection install openstack.cloud
```

4. Install the Python Libraries

```
yum install openssl openssl-devel -y
pip3 install -r requirements.txt
```

5. Navigate to `Application Credentials` [http://10.20.27.203/horizon/identity/application_credentials/](http://10.20.27.203/horizon/identity/application_credentials/) - Login if prompted.

6. Click `Create Application Credential`

7. Enter Name `automation-user-id`, where user-id is your shortname. - e.g., myuser.

8. Select Role > Reader / Member / Admin

9. Click `Create Application Credential`

10. Update the clouds.yaml to the folder `/etc/openstack/`. If the openstack folder is not present, create openstack folder in `/etc/`.

a. `application_credential_id` updated with the ID

b. `application_credential_secret` updated with the Secret


## Add the intel worker to power based ocp cluster

* Use yml file from the playbook folder - `intel-worker-create-add-playbook.yml` to add the worker to power based cluster.
Expand Down
Loading