This repository contains a collection of Terraform modules to be used to install Cloud Paks.
These modules are used by Terraform scripts in this directory.
Name | Description | Source |
---|---|---|
roks | Provision an IBM OpenShift managed cluster. An OpenShift cluster is required to install any Cloud Pak module | git::https://github.com/ibm-hcbt/terraform-ibm-cloud-pak.git//roks |
cp4mcm | Installs the Cloud Pak for MultiCloud Management on an existing OpenShift cluster | git::https://github.com/ibm-hcbt/terraform-ibm-cloud-pak.git//cp4mcm |
cp4app | Installs the Cloud Pak for Applications on an existing OpenShift cluster | git::https://github.com/ibm-hcbt/terraform-ibm-cloud-pak.git//cp4app |
cp4auto | Installs the Cloud Pak for Automation on an existing OpenShift cluster | git::https://github.com/ibm-hcbt/terraform-ibm-cloud-pak.git//cp4auto |
cp4data | Installs the Cloud Pak for Data on an existing OpenShift cluster | git::https://github.com/ibm-hcbt/terraform-ibm-cloud-pak.git//cp4data |
cp4i | Installs the Cloud Pak for Integration on an existing OpenShift cluster | git::https://github.com/ibm-hcbt/terraform-ibm-cloud-pak.git//cp4i |
iaf | Installs the IBM Automation Foundation on an existing OpenShift cluster | git::https://github.com/ibm-hcbt/terraform-ibm-cloud-pak.git//iaf |
portworx | Installs Portworx on an existing OpenShift cluster | git::https://github.com/ibm-hcbt/terraform-ibm-cloud-pak.git//portworx |
If running these modules from your local terminal, you need to set the credentials to access IBM Cloud.
You can define the IBM Cloud credentials in the IBM provider block but it is recommended to pass them in as environment variables.
Go here for details.
NOTE: These credentials are not required if running this Terraform code within an IBM Cloud Schematics workspace. They are automatically set from your account.
Refer to <module>/README.md
for specific details on how to invoke the module from a Terraform Script.
Some of the modules provide a testing directory. To manually run a module test before committing the code:
- go to the
<module>/testing
subdirectory - following instructions in
<module>/testing/README.md
The testing code provides an example on how to use the module.
Each module has the file OWNER.md
with the collaborators working actively on this module. Although this project and modules are open source, and everyone can and is encourage to contribute, the module owners are responsible for the merging process. Please, contact them for any questions.
For more information about development and contributions to the code read the CONTRIBUTE document.
And ... don't forget to keep the Terraform code format clean and readable.
terraform fmt -recursive