diff --git a/tf/add-powervm-workers/README.md b/tf/add-powervm-workers/README.md new file mode 100644 index 0000000..53723df --- /dev/null +++ b/tf/add-powervm-workers/README.md @@ -0,0 +1,43 @@ +# Add PowerVM workers to Intel cluster + +User need to uopdate required vales in data/vars.tfvars file such as username and password of IBM intranet credentials to get access to the PowerVC. +``` +auth_url = "https://host.net:5000/v3/" +user_name = "***@us.ibm.com" +password = "***" +``` + +### Use Terraform command to plan and apply . + + ``` + terraform plan -var-file=data/vars.tfvars + ``` + + ``` + terraform apply -var-file=data/vars.tfvars + ``` + +### Configure the DHCP and restart the dhcpd service. + +Get the MAC Address and IP Address of the VM created on PowerVC. Update /etc/dhcp/dhcpd.conf with the lease/addresses as shown below. + + ``` + host workerp-0 { hardware ethernet fa:16:3e:0f:95:6b; fixed-address 10.20.177.243; } + ``` + +* Restart the dhcpd. + ``` + systemctl restart dhcpd + ``` +* Restart the Worker node for ignition to start. + +* Approve the CSR certificate to add the worker to intel cluster. + ``` + oc get csr + ``` + ``` + oc adm certificate approve + ``` + + + diff --git a/tf/add-powervm-workers/powervm.tfvars b/tf/add-powervm-workers/powervm.tfvars new file mode 100644 index 0000000..f55a216 --- /dev/null +++ b/tf/add-powervm-workers/powervm.tfvars @@ -0,0 +1,23 @@ +################################################################ +# Copyright 2024 - IBM Corporation. All rights reserved +# SPDX-License-Identifier: Apache-2.0 +################################################################ + +auth_url = "https://:5000/v3/" +user_name = "" +password = "" +insecure = true +tenant_name = "" +domain_name = "" + +network_name = "" +ignition_ip = "" +resolver_ip = "" +resolve_domain = "" +power_worker_prefix = "" +flavor_id = "" +image_id = "" +openstack_availability_zone = "" + +# the number of workers to create +worker_count = 2