-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
209 lines (201 loc) · 4.57 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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
variable "resource_tags" {
description = "Tags to set for all resources"
type = map(string)
default = {
project = "project-alpha",
environment = "dev"
}
}
#variable "adomVARS" {
# description = "Metadata Vars per ADOM (Customer)"
# type = map(object({
# name = string
# description = string
# scopetype = string
# adom = string
# default_value = string
# dynamic_mapping = object({
# _scope = object({
# name = string
# vdom = string
# })
# value = string
# })
# }))
#}
variable "device" {
type = map(object({
type = string
count = number
name = string
adm_usr = string
adm_pass = string
platform_str = string
sn = string
mgmt_mode = string
deviceaction = string
os_type = string
os_ver = string
description = string
latitude = string
longitude = string
ip = string
metadata = object(
{
address = string
org = string
email = string
phone = string
})
}))
# default = {
# Hub01 = {
# type = "hub"
# name = "Oslo-Hub"
# adm_usr = "admin"
# adm_pass = ""
# platform_str = "FortiGate-VM64-KVM"
# sn = "FGVMEVDNB1HFA86B"
# mgmt_mode = "fmg"
# deviceaction = "add_model"
# os_type = "fos"
# os_ver = "7.0"
# description = "Managed By Terraform"
# latitude = "60.37309"
# longitude = "5.339208"
# metadata = (
# {
# address = "Fjøsangerveien 65"
# org = "Eviny Digital AS"
# email = "[email protected]"
# phone = "+4745402619"
# })
# }
# Spoke01 = {
# type = "spoke"
# name = "storsenter-1"
# adm_usr = "admin"
# adm_pass = ""
# platform_str = "FortiGate-VM64-KVM"
# sn = "FGVMEVYBU0WTJJC0"
# mgmt_mode = "fmg"
# deviceaction = "add_model"
# os_type = "fos"
# os_ver = "7.0"
# description = "Managed By Terraform"
# latitude = "60.37309"
# longitude = "5.339208"
# metadata = (
# {
# address = "Fjøsangerveien 65"
# org = "Eviny Digital AS"
# email = "[email protected]"
# phone = "+4745402619"
# })
# }
# Spoke02 = {
# type = "spoke"
# name = "storsenter-2"
# adm_usr = "admin"
# adm_pass = ""
# platform_str = "FortiGate-VM64-KVM"
# sn = "FGVMEVUPTJZQIMF7"
# mgmt_mode = "fmg"
# deviceaction = "add_model"
# os_type = "fos"
# os_ver = "7.0"
# description = "Managed By Terraform"
# latitude = "60.37309"
# longitude = "5.339208"
# metadata = (
# {
# address = "Fjøsangerveien 65"
# org = "Eviny Digital AS"
# email = "[email protected]"
# phone = "+4745402619"
# })
# }
# }
}
variable "cli-template-project-variables" {
description = "Project Variables"
type = list(string)
default = [
"lan_ip_edu",
"lan_ip_fin",
"mpls_wan_ip",
"hostname",
"profile",
"region",
"loopback",
"mpls_wan_gateway",
"inbandwidth",
"shaping_profile",
"outbandwidth",
]
}
variable "workingADOM" {
type = string
}
#variable "mgmt_mode" {
# type = string
# description = "add real and model device. Valid values: unreg, fmg, faz, fmgfaz."
# default = [
# "unreg",
# "fmg",
# "faz",
# "fmgfaz",
# ]
#}
#variable "deviceaction" {
# type = list(string)
# description = "Specify add device operations, or leave blank to add real device"
# default = [
# "add_model",
# "promote_unreg",
# ]
#}
#variable "os_ver" {
# type = list(string)
# description = " add model device only"
# default = [
# "unknown",
# "fos",
# "fsw",
# "foc",
# "fml",
# "faz",
# "fwb",
# "fch",
# "fct",
# "log",
# "fmg",
# "fsa",
# "fdd",
# "fac",
# "fpx",
# "fna",
# ]
#}
#variable "pkg" {
# description = "Package Details"
# type = string
# default = "managedByTerraform"
#}
#variable "createADOM" {
# type = bool
#}
#
#variable "createDevice" {
# type = bool
#}
#variable "methodAPI" {
# type = list(string)
# description = ""
# default = [
# "get",
# "add",
# "set",
# "update",
# ]
#}