/terraform-ibm-cloud-pak

Primary LanguageHCLApache License 2.0Apache-2.0

IBM Terraform Modules to install Cloud Paks

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.

Modules

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

Set up access to IBM Cloud

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.

Provisioning the Cloud Pak Modules

Refer to <module>/README.md for specific details on how to invoke the module from a Terraform Script.

Testing

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.

Owners

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.

Contributing

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