-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
166 lines (146 loc) · 4.23 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
### Intersight - Common Variables
variable "intersight_key" {
type = string
}
variable "intersight_secret" {
type = string
}
variable "intersight_url" {
type = string
default = "https://intersight.com"
}
variable "org_name" {
type = string
default = "default"
}
variable "vcenter_password" {
type = string
sensitive = true
}
variable "vcenter_username" { # Not Used but defined in variable set
type = string
}
variable "vcenter_server" { # Not Used but defined in variable set
type = string
}
variable "tags" {
type = list(map(string))
default = []
description = "Tags to be associated with this object in Intersight."
}
### Intersight Kubernetes Policies as List of Objects ###
variable "version_policies" {
type = list(object({
# useExisting = bool
policyName = string
iksVersionName = optional(string)
description = optional(string)
versionName = optional(string)
}))
}
variable "instance_type_policies" {
type = list(object({
# use_existing = bool
description = optional(string)
name = string
cpu = optional(number)
memory = optional(number)
disk_size = optional(number)
}))
}
# variable "runtime_policies" {
# type = list(object({
# # use_existing = bool
# create_new = bool
# name = optional(string)
# http_proxy_hostname = optional(string)
# http_proxy_port = optional(number)
# http_proxy_protocol = optional(string)
# http_proxy_username = optional(string)
# http_proxy_password = optional(string)
# https_proxy_hostname = optional(string)
# https_proxy_port = optional(number)
# https_proxy_protocol = optional(string)
# https_proxy_username = optional(string)
# https_proxy_password = optional(string)
# docker_no_proxy = optional(list(string))
# }))
# sensitive = true
# }
variable "addon_policies" {
type = list(object({
# createNew = bool
policyName = optional(string)
addonName = optional(string)
description = optional(string)
upgradeStrategy = optional(string)
installStrategy = optional(string)
overrideSets = optional(list(map(string)))
overrides = optional(string)
releaseName = optional(string)
releaseNamespace = optional(string)
releaseVersion = optional(string)
}))
default = []
}
variable "ip_pool_policies" {
type = list(object({
# use_existing = bool
name = string
description = optional(string)
starting_address = optional(string)
pool_size = optional(string)
netmask = optional(string)
gateway = optional(string)
primary_dns = optional(string)
secondary_dns = optional(string)
}))
}
variable "k8s_network_policies" {
type = list(object({
# use_existing = bool
policy_name = string
description = optional(string)
pod_cidr = optional(string)
service_cidr = optional(string)
cni = optional(string)
}))
}
variable "trusted_registry_polices" {
type = list(object({
# use_existing = bool
create_new = bool
name = optional(string)
root_ca_registries = optional(list(string))
unsigned_registries = optional(list(string))
}))
}
variable "sysconfig_policies" {
type = list(object({
# use_existing = bool
policy_name = string
description = optional(string)
ntp_servers = optional(list(string))
dns_servers = optional(list(string))
timezone = optional(string)
domain_name = optional(string)
}))
}
# ### Sensitive Variable Definitions - Can't use in list/map ###
#
# variable "vmConfig" {
# type = object({
# platformType = optional(string)
# targetName = optional(string)
# policyName = string
# description = optional(string)
# interfaces = optional(list(string))
# # diskMode = optional(string)
# # vcTargetName = optional(string)
# vcClusterName = optional(string)
# vcDatastoreName = optional(string)
# vcResourcePoolName = optional(string)
# vcPassword = optional(string)
# })
# sensitive = true
# }