IBM Power Virtual Server in IBM Cloud
This example is part of an overall scenario to demonstrate the concept of enterprise application modernization by transition a historically monolithic application running on IBM Power Systems and refacotring it into a DB tier running on an AIX virtual machine (VM) and running the web tier as a container atop a container orchestration technology (e.g., Red Hat OpenShift). The web tier of the application can be found here.
In particular, this example creates an AIX VM in the IBM Power Virtual Server in IBM Cloud. As part of the install, it also yum-installs a relational database (currently MySQL) and loads some fictitious data so there is some database information to work with.
If your Kubernetes cluster (e.g., OpenShift) is running external to the IBM Power Virtual Server cloud, you will need to either provision a DirectLink connection between the cloud infrastructures or you will need to ensure the AIX VM is created on a public network--ultimately so that the container-based web application can talk to the AIX VM.
To run the example, you will need to:
- Clone this Git repository
- Download and configure the IBM Cloud Terraform provider (minimally v0.18.0 or later)
- Obtain your IBM Cloud API key (needed for step #5)
- Upload your public SSH key to the IBM Power Virtual Server cloud (the name is needed for step #5)
- Update the variables.tf file to suit your needs
Next, you can run the example by invoking...
The planning phase (validates the Terraform configuration)
terraform init terraform plan
The apply phase (provisions the infrastructure)
The destroy phase (deletes the infrastructure)
There is also a camvariables.json file available so that you can import this GitHub repository as an IBM Cloud Automation Manager (CAM) template, allowing you to quickly provision a Power Systems VM in the IBM Cloud via CAM.