Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: redhat-gpst/terraform.ibmcloud.rhoic
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: rhpds/terraform.ibmcloud.rhoic
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 4 commits
  • 2 files changed
  • 1 contributor

Commits on Nov 19, 2024

  1. Update main.tf

    rut31337 authored Nov 19, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    331a288 View commit details
  2. Update variables.tf

    rut31337 authored Nov 19, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    f46659e View commit details
  3. Update variables.tf

    rut31337 authored Nov 19, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    ef2214d View commit details
  4. Update variables.tf

    rut31337 authored Nov 19, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    8b615bf View commit details
Showing with 17 additions and 17 deletions.
  1. +9 −9 main.tf
  2. +8 −8 variables.tf
18 changes: 9 additions & 9 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
data "ibm_resource_group" "rhpds" {
data "ibm_resource_group" "rg" {
name = var.resource_group
}

data "ibm_is_vpc" "rhpds" {
data "ibm_is_vpc" "vpc" {
name = var.vpc_name
}

data "ibm_is_subnet" "rhpds" {
data "ibm_is_subnet" "subnet" {
name = var.subnet_name
}

@@ -19,24 +19,24 @@ resource "ibm_resource_instance" "cos_instance" {
service = "cloud-object-storage"
plan = "standard"
location = "global"
resource_group_id = data.ibm_resource_group.rhpds.id
resource_group_id = data.ibm_resource_group.rg.id
}

resource "ibm_container_vpc_cluster" "rhpds" {
resource "ibm_container_vpc_cluster" "cluster" {
name = var.cluster_name
vpc_id = data.ibm_is_vpc.rhpds.id
vpc_id = data.ibm_is_vpc.vpc.id
kube_version = var.cluster_version
flavor = var.cluster_flavor
worker_count = var.cluster_worker_count
resource_group_id = data.ibm_resource_group.rhpds.id
resource_group_id = data.ibm_resource_group.rg.id
cos_instance_crn = ibm_resource_instance.cos_instance.id
wait_till = "OneWorkerNodeReady"
zones {
subnet_id = data.ibm_is_subnet.rhpds.id
subnet_id = data.ibm_is_subnet.subnet.id
name = local.ZONE
}
}

data "ibm_container_cluster_config" "cluster_config" {
cluster_name_id = ibm_container_vpc_cluster.rhpds.id
cluster_name_id = ibm_container_vpc_cluster.cluster.id
}
16 changes: 8 additions & 8 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
variable "ibmcloud_region" {
description = "Preferred IBM Cloud region to use for your infrastructure"
default = "us-east"
default = "us-south"
}

variable "ibmcloud_zone" {
description = "Preferred zone in the preferred IBM Cloud region"
default = "2"
default = "1"
}

variable "resource_group" {
@@ -14,27 +14,27 @@ variable "resource_group" {
}

variable "vpc_name" {
default = "rhpds"
default = "rhdp-vpc"
description = "Name of your VPC"
}

variable "subnet_name" {
default = "rhpds"
default = "rhdp-subnet"
description = "Name of your Subnet"
}

variable "pg_name" {
default = "rhpds"
variable "pgw_name" {
default = "rhdp-pgw"
description = "Name of your Public Gateway"
}

variable "cos_name" {
default = "rhpds"
default = "rhdp-cos"
description = "Cloud Object Storage resource instance"
}

variable "cluster_name" {
default = "rhpds"
default = "rhdp-rhoic"
description = "Name of RHOIC Cluster"
}