- You need to grab the latest ignition on your Intel bastion:
curl -k -H "Accept: application/vnd.coreos.ignition+json;version=3.4.0" -o /var/www/html/ignition/worker.ign https://localhost:22623/config/worker
restorecon -R /var/www/html/ignition/
- Clone
git clone https://github.com/ocp-power-automation/ocp4-upi-multiarch-compute - Change directory to
ocp4-upi-multiarch-compute/tf/add-powervm-workers - Create a tfvars file
auth_url = "https://<vl>:5000/v3"
user_name = ""
password = ""
insecure = true
tenant_name = "ocp-qe"
domain_name = "Default"
network_name = "vlan"
ignition_ip = "10.10.19.16"
resolver_ip = "10.10.19.16"
resolve_domain = "pavan-421ec3.ocpqe"
power_worker_prefix = "rhcos9-worker"
flavor_id = "8ee61c00-b803-49c5-b243-62da02220ed6"
image_id = "f48b00dc-d672-4f9a-bac8-a3383bea4a3f"
openstack_availability_zone = "e980"
# the number of workers to create
worker_count = 1
- Run Terraform
terraform apply -var-file=data/var.tfvars - On a Power bastion node, you will need to add dhcpd entry to
/etc/dhcp/dhcpd.confand named forwarder pointing to your Intel bastionforwarders { 8.8.4.4; };in/etc/named.conf. Then restart each usingsystemctl restart dhcpdandsystemctl restart named. - Start the VM is created in the ‘Stopped’ state, you can manually ‘Start’ it.
- Approve the CSRs that are generated.
public docs are at https://github.com/ocp-power-automation/ocp4-upi-multiarch-compute/tree/main/tf/add-powervm-workers#add-powervm-workers-to-intel-cluster