forked from hashicorp/terraform-azurerm-consul
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vars.tf
90 lines (72 loc) · 2.88 KB
/
vars.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
# ---------------------------------------------------------------------------------------------------------------------
# REQUIRED PARAMETERS
# ---------------------------------------------------------------------------------------------------------------------
variable "subscription_id" {
description = "The Azure subscription ID"
}
variable "tenant_id" {
description = "The Azure tenant ID"
}
variable "client_id" {
description = "The Azure client ID"
}
variable "secret_access_key" {
description = "The Azure secret access key"
}
variable "resource_group_name" {
description = "The name of the Azure resource group consul will be deployed into. This RG should already exist"
}
variable "storage_account_name" {
description = "The name of an Azure Storage Account. This SA should already exist"
}
variable "image_uri" {
description = "The URI to the Azure image that should be deployed to the consul cluster."
}
variable "key_data" {
description = "The SSH public key that will be added to SSH authorized_users on the consul instances"
}
variable "allowed_inbound_cidr_blocks" {
description = "A list of CIDR-formatted IP address ranges from which the Azure Instances will allow connections to Consul"
type = "list"
}
# ---------------------------------------------------------------------------------------------------------------------
# OPTIONAL PARAMETERS
# These parameters have reasonable defaults.
# ---------------------------------------------------------------------------------------------------------------------
variable "location" {
description = "The Azure region the consul cluster will be deployed in"
default = "West Europe"
}
variable "allowed_ssh_cidr_blocks" {
description = "A list of CIDR-formatted IP address ranges from which the Azure Instances will allow SSH connections"
type = "list"
default = []
}
variable "address_space" {
description = "The supernet for the resources that will be created"
default = "10.0.0.0/16"
}
variable "subnet_address" {
description = "The subnet that consul resources will be deployed into"
default = "10.0.10.0/24"
}
variable "cluster_name" {
description = "What to name the Consul cluster and all of its associated resources"
default = "consul-example"
}
variable "instance_size" {
description = "The instance size for the servers"
default = "Standard_A0"
}
variable "num_servers" {
description = "The number of Consul server nodes to deploy. We strongly recommend using 3 or 5."
default = 1
}
variable "num_clients" {
description = "The number of Consul client nodes to deploy. You typically run the Consul client alongside your apps, so set this value to however many Instances make sense for your app code."
default = 3
}
variable "cluster_tag_key" {
description = "The tag the Azure Instances will look for to automatically discover each other and form a cluster."
default = "consul-servers"
}