forked from Azure/terraform-azurerm-vmss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
137 lines (110 loc) · 3.49 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
128
129
130
131
132
133
134
135
136
137
variable "resource_group_name" {
description = "Name of the resource group in which the Virtual Machine scaleset and the associated resources will be deployed."
default = "scaleset-rg"
}
variable "location" {
description = "Specifies the location where the resources will be deployed.Check the list of locations which support Avaialbility Zones for scaleset here https://docs.microsoft.com/en-us/azure/availability-zones/az-overview"
}
variable "name" {
description = "Name of Virtual Machine ScaleSet"
default = "azvmss"
}
variable "adminUsername" {
description = "Username for the Virtual Machine"
default = "azureuser"
}
variable "adminPassword" {
description = "Password for the Virtual Machine"
}
variable "sshkeys" {
description = "Path to SSH public key for authentication in linux"
default = "~/.ssh/id_rsa.pub"
}
variable "numberofVMs" {
description = "Number of VMs to deploy in the Virtual Machine ScaleSet"
default = "3"
}
variable "singleplacementgroup" {
description = "Disable to have cluster of more than 100 VMs"
default = "true"
}
variable "zones" {
description = "Zones to deploy the scaleset VMs"
default = [1, 2, 3]
}
variable "lb_sku" {
description = "Basic or Standard). Needs to be standard if Zones are used or singleplacementgroup is set to false"
default = "Standard"
}
variable "disk_type" {
description = "Disk type to be used for OS and data disks"
default = "Standard_LRS"
}
variable "data_disk_size" {
description = "Disk size for data disks in GB"
default = "32"
}
## Variables for VM type and OS
variable "vm_os_publisher" {
description = "Name of the publisher of the image to be deployed"
default = ""
}
variable "vm_os_offer" {
description = "Name of the offer of the image to be deployed"
default = ""
}
variable "vm_os_sku" {
description = "SKU of the image to be deployed"
default = ""
}
variable "vm_os_version" {
description = "Version of the image to be deployed"
default = ""
}
variable "custom_image_id" {
description = "If custom image is used image id needs to be specified here"
default = ""
}
variable "vm_size" {
description = "Size of the VMs in the scaleset"
default = "Standard_DS1_v2"
}
variable "os_type" {
description = "Variable to check the type of OS. Possible values linux or windows"
}
variable "windows_vm_agent" {
description = "Flag to enable VM guest agent on Windows VMs"
default = "true"
}
variable "windows_auto_upgrade" {
description = "Enable automatic windows updates"
default = "true"
}
## Variable for network and IP configurations ##
variable "vnet_subnet_id" {
description = "Subnet ID of the VNET where the Virtual Machine ScaleSet will be deployed"
}
variable "publicip_timeout" {
description = "The idle timeout in minutes. This value must be between 4 and 32"
default = "4"
}
variable "publicip_allocation" {
description = "Public IP allocation method. Needs to be static for Standard SKUs"
default = "Static"
}
variable "dns_name" {
description = "DNS name for the load balancer frontend publicip"
}
variable "accelerated_network" {
description = "Specifies whether to enable accelerated networking or not."
default = "false"
}
variable "ip_forwarding" {
description = "Specify whether IP forwarding is enabled on this NIC"
default = "false"
}
variable "tags" {
description = "A map of tags to the deployed resources. Empty by default."
type = "map"
default = {}
}