forked from terraform-ibm-modules/terraform-ibm-satellite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
60 lines (49 loc) · 1.67 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
#################################################################################################
# IBMCLOUD - Authentication , Target Variables.
#################################################################################################
variable "resource_group" {
description = "Name of the resource group on which location has to be created"
}
variable "ibm_region" {
description = "Region of the IBM Cloud account. Currently supported regions for satellite are us-east and eu-gb region."
default = null
}
#################################################
# IBMCLOUD Satellite Location Variables
##################################################
variable "location" {
description = "Location Name"
type = string
}
variable "is_location_exist" {
description = "Location Name"
type = bool
default = false
}
variable "managed_from" {
description = "The IBM Cloud region to manage your Satellite location from. Choose a region close to your on-prem data center for better performance."
type = string
}
variable "location_zones" {
description = "Allocate your hosts across these three zones"
type = list(string)
default = null
}
variable "host_labels" {
description = "Labels to add to attach host script"
type = list(string)
default = null
validation {
condition = can([for s in var.host_labels : regex("^[a-zA-Z0-9:]+$", s)])
error_message = "Label must be of the form `key:value`."
}
}
variable "location_bucket" {
description = "COS bucket name"
default = null
}
variable "host_provider" {
description = "The cloud provider of host|vms"
type = string
default = "ibm"
}