forked from rancherfederal/rke2-azure-tf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
68 lines (57 loc) · 1.69 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
variable "cluster_name" {
description = "Prefix used for all resources"
type = string
}
variable "subnet_id" {
description = "Subnet where to deploy the cluster resources"
type = string
}
variable "cloud" {
description = "Which Azure cloud to use"
type = string
default = "AzureUSGovernmentCloud"
validation {
condition = contains(["AzureUSGovernmentCloud", "AzurePublicCloud"], var.cloud)
error_message = "Allowed values for cloud are \"AzureUSGovernmentCloud\" or \"AzurePublicCloud\"."
}
}
variable "server_public_ip" {
description = "Assign a public IP to the control plane load balancer"
type = bool
default = false
}
variable "server_open_ssh_public" {
description = "Allow SSH to the server nodes through the control plane load balancer"
type = bool
default = false
}
variable "vm_size" {
description = "Default VM size to use for the cluster"
type = string
default = "Standard_D8_v3"
}
variable "server_vm_size" {
type = string
description = "VM size to use for the server nodes"
default = ""
}
variable "agent_vm_size" {
type = string
description = "VM size to use for the agent nodes"
default = ""
}
variable "server_instance_count" {
description = "Number of server nodes to deploy"
type = number
default = 1
}
variable "agent_instance_count" {
description = "Number of agent nodes to deploy"
type = number
default = 2
}
variable "resource_group_name" {
description = "(Optional) the name of an existing resource group to be used if not specified the subnet resource group will be used"
type = string
default = ""
}