This repository has been archived by the owner on May 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
executable file
·144 lines (129 loc) · 3.79 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
//// common variables
//
variable "web" {
type = string
description = "set to true to include web tier"
default = false
}
variable "app" {
type = string
description = "set to true to include app tier"
default = false
}
variable "database" {
type = string
description = "set to true to include database tier"
default = false
}
variable "prefix" {
type = string
description = "Main prefix for all objects"
}
variable "rg_name" {
type = string
description = "Resource group name"
}
variable "location" {
type = string
description = "Location to deploy to"
default = "West Europe"
}
variable "subnet_id" {
type = string
description = "Subnet to deploy to"
}
variable "common_tags" {
type = map(string)
description = "(Optional) Map of common tags for taggable resources."
default = {}
}
//// templates
//
variable "web_startup_script" {
default = ""
}
variable "app_startup_script" {
default = ""
}
variable "database_startup_script" {
default = ""
}
//// linuxvm related
//
variable "web_instance_config" {
type = object({
vm_name = string
os_publisher = string
os_offer = string
os_sku = string
os_version = string
os_disk_storage_account_type = string
machine_size = string
admin_username = string
admin_password = string
})
default = {
vm_name = "test-web"
machine_size = "Standard_D2_v4"
os_publisher = "RedHat"
os_offer = "RHEL"
os_sku = "7_9"
os_version = "7.9.2021051701"
os_disk_storage_account_type = "Standard_LRS"
admin_username = "rhel"
admin_password = ""
}
}
variable "app_instance_config" {
type = object({
vm_name = string
os_publisher = string
os_offer = string
os_sku = string
os_version = string
os_disk_storage_account_type = string
machine_size = string
admin_username = string
admin_password = string
})
default = {
vm_name = "test-web"
machine_size = "Standard_D2_v4"
os_publisher = "RedHat"
os_offer = "RHEL"
os_sku = "7_9"
os_version = "7.9.2021051701"
os_disk_storage_account_type = "Standard_LRS"
admin_username = "rhel"
admin_password = ""
}
}
variable "db_instance_config" {
type = object({
vm_name = string
os_publisher = string
os_offer = string
os_sku = string
os_version = string
os_disk_storage_account_type = string
machine_size = string
admin_username = string
admin_password = string
})
default = {
vm_name = "test-web"
machine_size = "Standard_D2_v4"
os_publisher = "RedHat"
os_offer = "RHEL"
os_sku = "7_9"
os_version = "7.9.2021051701"
os_disk_storage_account_type = "Standard_LRS"
admin_username = "rhel"
admin_password = ""
}
}
variable "disable_password_authentication" {
type = bool
description = "Set password auth on or off. Needs to be false for admin_password to be set"
default = false
}