generated from terraform-ibm-modules/terraform-ibm-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
83 lines (71 loc) · 3.15 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
73
74
75
76
77
78
79
80
81
82
83
##############################################################################
# Input Variables
##############################################################################
variable "cluster_id" {
type = string
description = "Id of the target IBM Cloud OpenShift Cluster."
nullable = false
}
variable "operator_helm_release_namespace" {
type = string
description = "Namespace to deploy the helm releases. Default to liberty-operator-helm-release."
default = "liberty-operator"
nullable = false
}
variable "add_ibm_operator_catalog" {
type = bool
description = "Whether to configure the IBM Operator Catalog in the cluster before the IBM WebSphere Liberty operator is installed. Default is `true`."
default = true
}
variable "create_ws_liberty_operator_namespace" {
type = bool
description = "Whether to create the namespace where the IBM WebSphere Liberty operator is deployed. Default is `false`."
default = false
}
variable "ws_liberty_operator_namespace" {
type = string
description = "Namespace where the IBM WebSphere Liberty operator is deployed. Default is `openshift-operators`."
default = "openshift-operators"
nullable = false
}
variable "ws_liberty_operator_target_namespace" {
type = string
description = "Namespace that the the IBM WebSphere Liberty operator watches. Default is `null`, which means that the operator watches all the namespaces."
default = null
}
variable "ws_liberty_operator_install_plan_approval" {
type = string
description = "IBM WebSphere Liberty operator approval configuration for OLM upgrade. Set to 'Manual' to manually approve the operator upgrades. Default is `Automatic`."
default = "Automatic"
validation {
error_message = "Invalid install plan approval configuration! Valid values are 'Automatic' or 'Manual'"
condition = contains(["Automatic", "Manual"], var.ws_liberty_operator_install_plan_approval)
}
nullable = false
}
variable "cluster_config_endpoint_type" {
description = "Specify which type of endpoint to use for for cluster config access: 'default', 'private', 'vpe', 'link'. 'default' value will use the default endpoint of the cluster."
type = string
default = "default"
nullable = false # use default if null is passed in
validation {
error_message = "Invalid Endpoint Type! Valid values are 'default', 'private', 'vpe', or 'link'"
condition = contains(["default", "private", "vpe", "link"], var.cluster_config_endpoint_type)
}
}
variable "install_wslo_sampleapp" {
description = "Whether to deploy the WebSphere Application Server Liberty sample application. Default is `false`."
type = bool
default = false
nullable = false
}
variable "wslo_sampleapp_name" {
description = "Application name to use for the WebSphere Application Server Liberty sample application."
type = string
default = "websphereliberty-app-sample"
}
variable "wslo_sampleapp_namespace" {
description = "Namespace where the WebSphere Application Server Liberty sample application is deployed."
type = string
default = "samplelibertyapp"
}