Skip to content

Commit

Permalink
Merge pull request #24 from pkenchap/pkenchap-readme-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
prb112 authored May 6, 2024
2 parents a009ed6 + 657b8fd commit 299f509
Showing 1 changed file with 55 additions and 23 deletions.
78 changes: 55 additions & 23 deletions openstack/intel-worker/README.md
Original file line number Diff line number Diff line change
@@ -1,65 +1,97 @@
### tasks/ignition.yml
# Intel Worker Playbook: Getting Started Guide

* To Add the intel worker to power based ocp cluster use yml file from the playbook folder - `intel-worker-add-playbook.yml`

* To cleanup the intel worker use yml file from the playbook folder - `intel-worker-cleanup-playbook.yml`

``` Note:
Update the variables for virtual machine. Below are the mandatory variables to be updated according to the opnstack environment.
Mandatory variables required. which are available in the playbook/roles/vm_create/defaults/main.yml
* vm_create_image_name
* vm_create_flavor
* vm_create_availability_zone
* vm_create_bastion_ip
Note: Do not make changes vm_create_name, if its required to change the name,
please do change in the vm_delete, vm_action, csr_approve, destroy_worker roles default respective varibales.
```

## To Run the playbook use below commands

* To create a intel worker vm from openstack with ignition and add node to cluster with csr approve.
```
cd ocp4-upi-multiarch-compute/openstack/intel-worker/
ansible-playbook playbooks/intel-worker-add-playbook.yml -vvvv
```
* To cleanup the intel worker and delete the worker from openstack
```
cd ocp4-upi-multiarch-compute/openstack/intel-worker/
ansible-playbook playbooks/intel-worker-cleanup-playbook.yml -vvvv
```

### playbook/roles/vm_create/tasks/main.yml

The task create virtual machine on OpenStack. Also it will use the worker ignition at the time of OS boot.

### playbook/roles/vm_delete/tasks/main.yml

The task removes virtual machine on OpenStack. also it will remove the intel worker node from the cluster.

### playbook/roles/vm_create/tasks/ignition.yml

The task downloads the ignition and sets up the preferred ignition, so it merges correctly with the downloaded ignition.

### tasks/patch-nfs-deployment-for-mac-worker.yml
### playbook/roles/tasks/patch-nfs-deployment-for-mac-worker.yml

The task patches the nfs deployment to the latest and pushes the work onto the Power workers.

### tasks/create_centos_image.yml
### playbook/roles/centos_create_image/tasks/main.yml

The task downloads locally the Centos Stream image, and then uploads the image to OpenStack.

### tasks/create_rhcos_image.yml
### playbook/roles/rhcos_create_image_image/tasks/main.yml

The task downloads locally the RHCOS image, and then uploads the image to OpenStack.

### tasks/remove_centos_image.yml
### playbook/roles/centos_delete_image/tasks/main.yml

The task removes the centos_image from OpenStack.

### tasks/remove_rhcos_image.yml
### playbook/roles/rhcos_delete_image/tasks/main.yml

The task removes the rhcos image from OpenStack.

### tasks/create_flavor.yml
### playbook/roles/custom_flavor_create/tasks/main.yml

The task creates the cpu/ram flavor on OpenStack that aligns with supported worker sizes.

### tasks/remove_flavor.yml
### playbook/roles/custom_flavor_delete/tasks/main.yml

The task removes the custom cpu/ram flavor on OpenStack.

### tasks/create_vm_instance.yml

The task create virtual machine on OpenStack.

### tasks/delete_vm_instance.yml

The task removes virtual machine on OpenStack.

### tasks/vm_server_action.yml
### playbook/roles/vm_action/tasks/main.yml

The task start/stop/restart virtual machine on OpenStack.
The task start/stop/restart virtual machine on OpenStack. By providing the vm_action_name variable.

### tasks/create_host_aggregate.yml
### playbook/roles/host_aggregate_create/tasks/main.yml

The task create a list of host aggregate (host group) on OpenStack.

### tasks/remove_host_aggregate.yml
### playbook/roles/host_aggregate_delete/tasks/main.yml

The task removes host aggregate (host group) on OpenStack.

### tasks/patch-co-ingress-for-mac-worker.yml
### playbook/roles/patch-co-ingress-for-mac-worker.yml

The task patches the ingress to run on the primary architecture of the cluster. In this case, it's ppc64le.

### tasks/update-chrony-configuration.yml
### playbook/roles/update-chrony-configuration.yml

The task updates the chrony.cfg based on retrieved subnet list on Bastion.
The chrony.cfg is backed up to `/etc/chrony.conf.backup-SECONDS`, where SECONDS is the seconds since 1970-01-01.

### tasks/update-chrony-configuration-in.yml
### playbook/roles/update-chrony-configuration-in.yml

The task updates the chrony.cfg based on input subnet list on Bastion.
The chrony.cfg is backed up to `/etc/chrony.conf.backup-SECONDS`, where SECONDS is the seconds since 1970-01-01.

0 comments on commit 299f509

Please sign in to comment.