generated from terraform-yacloud-modules/terraform-yandex-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
127 lines (106 loc) · 3.08 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
variable "network_id" {
description = "Yandex Cloud network ID"
type = string
}
variable "subnet_id" {
description = "The ID of the subnet, to which the host belongs. The subnet must be a part of the network to which the cluster belongs"
type = string
}
variable "zone_id" {
description = "Availability zone for the subnet"
type = string
}
variable "security_group_ids" {
description = "List of security group IDs"
type = list(string)
default = []
}
variable "cluster_name" {
description = "Name of the Greenplum cluster"
type = string
}
variable "cluster_description" {
description = "Description of the Greenplum cluster"
default = null
type = string
}
variable "environment" {
description = "Deployment environment of the Greenplum cluster"
type = string
validation {
condition = contains(["PRODUCTION", "PRESTABLE"], var.environment)
error_message = "The environment must be either PRODUCTION or PRESTABLE."
}
}
variable "assign_public_ip" {
description = "Assign a public IP to the master hosts"
type = bool
}
variable "greenplum_version" {
description = "Version of the Greenplum cluster"
type = string
validation {
condition = contains(["6.22", "6.25"], var.greenplum_version)
error_message = "The Greenplum version must be either 6.22 or 6.25."
}
}
variable "master_host_count" {
description = "Number of hosts in master subcluster"
type = number
validation {
condition = var.master_host_count == 1 || var.master_host_count == 2
error_message = "The number of master hosts must be either 1 or 2."
}
}
variable "segment_host_count" {
description = "Number of hosts in segment subcluster"
type = number
validation {
condition = var.segment_host_count >= 1 && var.segment_host_count <= 32
error_message = "The number of segment hosts must be between 1 and 32."
}
}
variable "segment_in_host" {
description = "Number of segments on segment host"
type = number
}
variable "master_resources_preset" {
description = "Resource preset for master hosts"
type = string
}
variable "master_disk_size" {
description = "Disk size for master hosts"
type = number
}
variable "master_disk_type" {
description = "Disk type for master hosts"
type = string
}
variable "segment_resources_preset" {
description = "Resource preset for segment hosts"
type = string
}
variable "segment_disk_size" {
description = "Disk size for segment hosts"
type = number
}
variable "segment_disk_type" {
description = "Disk type for segment hosts"
type = string
}
variable "access_web_sql" {
description = "Allow access for SQL queries in the management console"
type = bool
}
variable "greenplum_config" {
description = "Greenplum cluster config"
type = map(string)
}
variable "user_name" {
description = "Greenplum cluster admin user name"
type = string
}
variable "user_password" {
description = "Greenplum cluster admin password"
type = string
}