Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
scripts
README.md
camvariables.json
main.tf
outputs.tf Add files via upload Oct 28, 2019
provider.tf
variables.tf

README.md

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:

  1. Clone this Git repository
  2. Download and configure the IBM Cloud Terraform provider (minimally v0.18.0 or later)
  3. Obtain your IBM Cloud API key (needed for step #5)
  4. Upload your public SSH key to the IBM Power Virtual Server cloud (the name is needed for step #5)
  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)

terraform apply

The destroy phase (deletes the infrastructure)

terraform destroy

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.

You can’t perform that action at this time.