forked from Azure/terraform-azurerm-compute
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
153 lines (123 loc) · 5.18 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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
variable "resource_group_name" {
description = "The name of the resource group in which the resources will be created"
default = "terraform-compute"
}
variable "location" {
description = "The location/region where the virtual network is created. Changing this forces a new resource to be created."
}
variable "vnet_subnet_id" {
description = "The subnet id of the virtual network where the virtual machines will reside."
}
variable "public_ip_dns" {
description = "Optional globally unique per datacenter region domain name label to apply to each public ip address. e.g. thisvar.varlocation.cloudapp.azure.com where you specify only thisvar here. This is an array of names which will pair up sequentially to the number of public ips defined in var.nb_public_ip. One name or empty string is required for every public ip. If no public ip is desired, then set this to an array with a single empty string."
default = [""]
}
variable "admin_password" {
description = "The admin password to be used on the VMSS that will be deployed. The password must meet the complexity requirements of Azure"
default = ""
}
variable "ssh_key" {
description = "Path to the public key to be used for ssh access to the VM. Only used with non-Windows vms and can be left as-is even if using Windows vms. If specifying a path to a certification on a Windows machine to provision a linux vm use the / in the path versus backslash. e.g. c:/home/id_rsa.pub"
default = "~/.ssh/id_rsa.pub"
}
variable "remote_port" {
description = "Remote tcp port to be used for access to the vms created via the nsg applied to the nics."
default = ""
}
variable "admin_username" {
description = "The admin username of the VM that will be deployed"
default = "azureuser"
}
variable "custom_data" {
description = "The custom data to supply to the machine. This can be used as a cloud-init for Linux systems."
default = ""
}
variable "storage_account_type" {
description = "Defines the type of storage account to be created. Valid options are Standard_LRS, Standard_ZRS, Standard_GRS, Standard_RAGRS, Premium_LRS."
default = "Premium_LRS"
}
variable "vm_size" {
description = "Specifies the size of the virtual machine."
default = "Standard_DS1_V2"
}
variable "nb_instances" {
description = "Specify the number of vm instances"
default = "1"
}
variable "vm_hostname" {
description = "local name of the VM"
default = "myvm"
}
variable "vm_os_simple" {
description = "Specify UbuntuServer, WindowsServer, RHEL, openSUSE-Leap, CentOS, Debian, CoreOS and SLES to get the latest image version of the specified os. Do not provide this value if a custom value is used for vm_os_publisher, vm_os_offer, and vm_os_sku."
default = ""
}
variable "vm_os_id" {
description = "The resource ID of the image that you want to deploy if you are using a custom image.Note, need to provide is_windows_image = true for windows custom images."
default = ""
}
variable "is_windows_image" {
description = "Boolean flag to notify when the custom image is windows based."
default = "false"
}
variable "vm_os_publisher" {
description = "The name of the publisher of the image that you want to deploy. This is ignored when vm_os_id or vm_os_simple are provided."
default = ""
}
variable "vm_os_offer" {
description = "The name of the offer of the image that you want to deploy. This is ignored when vm_os_id or vm_os_simple are provided."
default = ""
}
variable "vm_os_sku" {
description = "The sku of the image that you want to deploy. This is ignored when vm_os_id or vm_os_simple are provided."
default = ""
}
variable "vm_os_version" {
description = "The version of the image that you want to deploy. This is ignored when vm_os_id or vm_os_simple are provided."
default = "latest"
}
variable "tags" {
type = "map"
description = "A map of the tags to use on the resources that are deployed with this module."
default = {
source = "terraform"
}
}
variable "public_ip_address_allocation" {
description = "Defines how an IP address is assigned. Options are Static or Dynamic."
default = "dynamic"
}
variable "nb_public_ip" {
description = "Number of public IPs to assign corresponding to one IP per vm. Set to 0 to not assign any public IP addresses."
default = "1"
}
variable "delete_os_disk_on_termination" {
description = "Delete datadisk when machine is terminated"
default = "false"
}
variable "data_sa_type" {
description = "Data Disk Storage Account type"
default = "Standard_LRS"
}
variable "data_disk_size_gb" {
description = "Storage data disk size size"
default = ""
}
variable "data_disk" {
type = "string"
description = "Set to true to add a datadisk."
default = "false"
}
variable "boot_diagnostics" {
description = "(Optional) Enable or Disable boot diagnostics"
default = "false"
}
variable "boot_diagnostics_sa_type" {
description = "(Optional) Storage account type for boot diagnostics"
default = "Standard_LRS"
}
variable "enable_accelerated_networking" {
type = "string"
description = "(Optional) Enable accelerated networking on Network interface"
default = "false"
}