-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvariable.tf
141 lines (110 loc) · 3.41 KB
/
variable.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
/*------------------Resource group variable -----------*/
variable "resource_group_name" {
type = list(string)
description = "(Required) Name of Resource Group"
}
variable "resource_group_location" {
type = string
description = "(Required) Location where we want to implement code"
}
variable "lock_level_value" {
type = string
default = "CanNotDelete"
description = "(Required) Specifies the Level to be used for this Lock. Possible values are `Empty (no lock)`, `CanNotDelete` and `ReadOnly`. Changing this forces a new resource to be created"
}
/*------------------Vnet variable -----------*/
variable "vnet_name" {
description = "(Required) The name of the virtual network. Changing this forces a new resource to be created."
type = list(string)
}
variable "vnet_location" {
type = list(string)
description = "names of the vnet's location"
}
variable "address_space" {
description = "(Required) The address space that is used the virtual network. You can supply more than one address space."
type = list(list(any))
}
variable "create_ddos_protection_plan" {
description = "(Required) Create an ddos plan - Default is false"
type = list(bool)
default = [false]
}
variable "dns_servers" {
description = "(Optional) List of IP addresses of DNS servers"
type = list(string)
}
# /*------------------Subnet variable -----------*/
variable "subnet_name" {
description = "The variable for subnet names"
type = list(list(string))
}
variable "subnet_address_prefixes" {
description = "The CIDR block for the vnet"
type = list(list(string))
}
variable "service_endpoints" {
description = "The list of Service endpoints to associate with the subnet"
type = list(string)
}
variable "tags" {
type = map(string)
description = "Map of Tags those we want to Add"
}
## vm
variable "vm_name" {
description = "Provide vm Name"
type = list(string)
}
variable "vm_size" {
description = "Specifies the VM Size"
type = string
}
variable "vm_storage_image_reference_1" {
type = any
description = "Specifies the VM image"
}
variable "vm_storage_os_disk" {
type = any
description = "Specifies the VM storage disk"
default = [{
name = "vmdisk1"
caching = "ReadWrite"
create_option = "FromImage"
managed_disk_type = "Standard_LRS"
},
{
name = "vmdisk2"
caching = "ReadWrite"
create_option = "FromImage"
managed_disk_type = "Standard_LRS"
}]
}
variable "vm_os_profile" {
type = any
description = "Specifies the VM user and profile"
default = {
computer_name = "hostname"
admin_username = "ubuntu"
admin_password = null
}
}
#-----------------nsg----
variable "azurem_security_group_name" {
description = "nsg_name"
type = list(string)
}
variable "azurem_custom_nsg_rules" {
type = list(object({
name = list(string)
priority = list(number)
direction = list(string)
access = list(string)
protocol = list(string)
source_port_range = list(string)
destination_port_range = list(string)
source_address_prefix = list(string)
destination_address_prefix = list(string)
}))
description = "security_rule"
}