Skip to content

Commit 56db6aa

Browse files
committed
init commit
1 parent 64a1ec6 commit 56db6aa

25 files changed

+282
-255
lines changed

.secrets.baseline

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"files": "go.sum|^.secrets.baseline$",
44
"lines": null
55
},
6-
"generated_at": "2024-12-11T17:56:20Z",
6+
"generated_at": "2024-12-12T19:44:26Z",
77
"plugins_used": [
88
{
99
"name": "AWSKeyDetector"
@@ -82,7 +82,7 @@
8282
"hashed_secret": "ff9ee043d85595eb255c05dfe32ece02a53efbb2",
8383
"is_secret": false,
8484
"is_verified": false,
85-
"line_number": 71,
85+
"line_number": 72,
8686
"type": "Secret Keyword",
8787
"verified_result": null
8888
}

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Update status and "latest release" badges:
77
2. Update the "latest release" badge to point to the correct module's repo. Replace "terraform-ibm-module-template" in two places.
88
-->
99
[![Incubating (Not yet consumable)](https://img.shields.io/badge/status-Incubating%20(Not%20yet%20consumable)-red)](https://terraform-ibm-modules.github.io/documentation/#/badge-status)
10-
[![latest release](https://img.shields.io/github/v/release/terraform-ibm-modules/terraform-ibm-module-template?logo=GitHub&sort=semver)](https://github.com/terraform-ibm-modules/terraform-ibm-module-template/releases/latest)
10+
[![latest release](https://img.shields.io/github/v/release/terraform-ibm-modules/terraform-ibm-cloudpak-data?logo=GitHub&sort=semver)](https://github.com/terraform-ibm-modules/terraform-ibm-cloudpak-data/releases/latest)
1111
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
1212
[![Renovate enabled](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com/)
1313
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
@@ -20,13 +20,14 @@ For information, see "Module names and descriptions" at
2020
https://terraform-ibm-modules.github.io/documentation/#/implementation-guidelines?id=module-names-and-descriptions
2121
-->
2222

23-
TODO: Replace this with a description of the modules in this repo.
23+
Install cloud pak for data onto an existing Red Hat OpenShift cluster.
2424

2525

2626
<!-- The following content is automatically populated by the pre-commit hook -->
2727
<!-- BEGIN OVERVIEW HOOK -->
2828
## Overview
2929
* [terraform-ibm-cloudpak-data](#terraform-ibm-cloudpak-data)
30+
* [Examples](./examples)
3031
* [Contributing](#contributing)
3132
<!-- END OVERVIEW HOOK -->
3233

@@ -41,7 +42,7 @@ https://terraform-ibm-modules.github.io/documentation/#/implementation-guideline
4142

4243

4344
<!-- Replace this heading with the name of the root level module (the repo name) -->
44-
## terraform-ibm-module-template
45+
## terraform-ibm-cloudpak-data
4546

4647
### Usage
4748

cra-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77

88
version: "v1"
99
CRA_TARGETS:
10-
- CRA_TARGET: "solutions/deploy" # Target directory for CRA scan. If not provided, the CRA Scan will not be run.
10+
- CRA_TARGET: "examples/basic" # Target directory for CRA scan. If not provided, the CRA Scan will not be run.
1111
CRA_IGNORE_RULES_FILE: "cra-tf-validate-ignore-rules.json"
1212
PROFILE_ID: "fe96bd4d-9b37-40f2-b39f-a62760e326a3" # SCC profile ID (currently set to 'IBM Cloud Framework for Financial Services' '1.7.0' profile).
1313
# SCC_INSTANCE_ID: "" # The SCC instance ID to use to download profile for CRA scan. If not provided, a default global value will be used.
1414
# SCC_REGION: "" # The IBM Cloud region that the SCC instance is in. If not provided, a default global value will be used.
1515
CRA_ENVIRONMENT_VARIABLES: # An optional map of environment variables for CRA, where the key is the variable name and value is the value. Useful for providing TF_VARs.
16-
TF_VAR_prefix: "mock"
17-
TF_VAR_region: "us-south"
16+
TF_VAR_prefix: "roks-cpd"
17+
TF_VAR_region: "au-syd"

examples/basic/main.tf

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
##############################################################################
2+
# ROKS Landing zone
3+
##############################################################################
4+
5+
module "roks_landing_zone" {
6+
source = "git::https://github.com/terraform-ibm-modules/terraform-ibm-landing-zone.git//patterns/roks-quickstart?ref=v6.6.1"
7+
ibmcloud_api_key = var.ibmcloud_api_key
8+
prefix = var.prefix
9+
region = var.region
10+
resource_tags = var.resource_tags
11+
}
12+
13+
##############################################################################
14+
# Deploy cloudpak_data
15+
##############################################################################
16+
module "cloudpak_data" {
17+
source = "../../solutions/deploy"
18+
ibmcloud_api_key = var.ibmcloud_api_key
19+
prefix = var.prefix
20+
region = var.region
21+
cluster_name = module.roks_landing_zone.workload_cluster_id
22+
cloud_pak_deployer_image = "quay.io/cloud-pak-deployer/cloud-pak-deployer"
23+
cpd_admin_password = "Passw0rd" #pragma: allowlist secret
24+
cpd_entitlement_key = "entitlementKey"
25+
install_odf_cluster_addon = var.install_odf_cluster_addon
26+
wait_for_cpd_job_completion = false
27+
}

examples/basic/outputs.tf

Whitespace-only changes.

examples/basic/providers.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
provider "ibm" {
2+
ibmcloud_api_key = var.ibmcloud_api_key
3+
region = var.region
4+
}

examples/basic/variables.tf

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
##############################################################################
2+
# Account Variables
3+
##############################################################################
4+
5+
variable "ibmcloud_api_key" {
6+
description = "The IBM Cloud platform API key needed to deploy IAM enabled resources."
7+
type = string
8+
sensitive = true
9+
}
10+
11+
variable "prefix" {
12+
description = "A unique identifier for resources that is prepended to resources that are provisioned. Must begin with a lowercase letter and end with a lowercase letter or number. Must be 13 or fewer characters."
13+
type = string
14+
default = "lz-roks-cp4d"
15+
16+
validation {
17+
error_message = "Prefix must begin with a letter and contain only lowercase letters, numbers, and - characters. Prefixes must end with a lowercase letter or number and be 13 or fewer characters."
18+
condition = can(regex("^([a-z]|[a-z][-a-z0-9]*[a-z0-9])$", var.prefix)) && length(var.prefix) <= 13
19+
}
20+
}
21+
22+
variable "region" {
23+
description = "Region where VPC will be created. To find your VPC region, use `ibmcloud is regions` command to find available regions."
24+
type = string
25+
default = "au-syd"
26+
}
27+
28+
variable "resource_tags" {
29+
type = list(string)
30+
description = "List of resource tag to associate with all resource instances created by this example."
31+
default = []
32+
}
33+
34+
variable "install_odf_cluster_addon" {
35+
description = "Install the odf cluster addon"
36+
type = bool
37+
default = false
38+
}

examples/basic/versions.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
terraform {
2+
required_version = ">= 1.3"
3+
required_providers {
4+
# renovate is set up to keep provider version at the latest for all DA solutions
5+
ibm = {
6+
source = "IBM-Cloud/ibm"
7+
version = "1.71.3"
8+
}
9+
}
10+
}

solutions/deploy/cloud-pak-deployer/config/config.yaml

Lines changed: 0 additions & 64 deletions
This file was deleted.

solutions/deploy/cloud-pak-deployer/definitions/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)