-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathvariables.tf
72 lines (61 loc) · 3.11 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
variable "ibmcloud_api_key" {
type = string
default = ""
description = "The IAM API Key for IBM Cloud access"
}
# Resource Group Variables
variable "resource_group_name" {
type = string
description = "Existing resource group where the IKS cluster will be provisioned. Use `ibmcloud resource groups` or visit https://cloud.ibm.com/account/resource-groups to see a list of available resource groups."
}
# Cluster Variables
variable "private_vlan_id" {
type = string
default = ""
description = "Existing private VLAN id for cluster creation. Use `ibmcloud ks vlan ls --zone <zone>` or visit https://cloud.ibm.com/classic/network/vlans to see a list of available private vlans. If you do not have any existing vlans, leave this field blank."
}
variable "public_vlan_id" {
type = string
default = ""
description = "Existing public VLAN number for cluster creation. Use `ibmcloud ks vlan ls --zone <zone>` or visit https://cloud.ibm.com/classic/network/vlans to see a list of available public vlans. If you do not have any existing vlans, leave this field blank."
}
variable "vlan_datacenter" {
type = string
description = "Datacenter for VLANs defined in private_vlan_number and public_vlan_number. Use `ibmcloud ks zone ls --provider classic` to see a list of availabe datacenters. The data center should be in within the cluster's region."
}
variable "cluster_machine_type" {
type = string
description = "The machine type for the cluster worker nodes (b3c.4x16 is minimum for OpenShift). Use `ibmcloud ks flavors --zone <zone>` to see the flavors available."
default = "b3c.4x16"
}
variable "cluster_worker_count" {
description = "The number of worker nodes for the cluster."
default = 3
}
variable "cluster_hardware" {
type = string
description = "The level of hardware isolation for your worker node. Use 'dedicated' to have available physical resources dedicated to you only, or 'shared' to allow physical resources to be shared with other IBM customers."
default = "shared"
}
variable "cluster_name" {
type = string
description = "The name of the cluster"
}
variable "cluster_version" {
type = string
description = "The OpenShift version to install. Use `ibmcloud ks versions --show-version OpenShift` to see a list of OpenShift versions."
default = "4.6.17_openshift"
}
variable "entitlement" {
type = string
description = "If you purchased an IBM Cloud Cloud Pak that includes an entitlement to run worker nodes that are installed with OpenShift Container Platform, enter `cloud_pak` to create your cluster with that entitlement so that you are not charged twice for the OpenShift license. Note that this option can be set only when you create the cluster. After the cluster is created, the cost for the OpenShift license occurred and you cannot disable this charge."
default = ""
}
//Variable required for content catalog to select terraform version
variable "TF_VERSION" {
default = "0.12"
description = "terraform engine version to be used in schematics"
}
terraform {
required_version = "> 0.12.0"
}