-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvariables.tf
157 lines (149 loc) · 3.97 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
#cloud variables
variable "esxi_env" {
type = object({
hostname = string
username = string
password = string
hostport = number
disk_store = string
})
}
variable "domain_env" {
type = object({
dns_server = string
user = string
password = string
domain_name = string
})
}
variable "vmtemplate" {
type = object({
vmtemplatename = string
vmtemplatepath = string
vmtemplatefull = string
vmtemplate = string
vmtemplatedlurl = string
nestedvirt = string
virthwvers = string
vmtemplatenetwork = string
})
default = {
vmtemplatename = "template-rocky9"
vmtemplatepath = "vmtemplates"
vmtemplate = "Rocky-9-Vagrant-VMware.latest.x86_64.box"
vmtemplatefull = "vmtemplates/Rocky-9-Vagrant-VMware.latest.x86_64.box"
vmtemplatedlurl = "https://dl.rockylinux.org/pub/rocky/9/images/x86_64/Rocky-9-Vagrant-VMware.latest.x86_64.box"
nestedvirt = "TRUE"
virthwvers = "17"
vmtemplatenetwork = "VM Network"
}
}
variable "vm_env" {
type = object({
gw = string
dns = string
dns_search_dom = string
})
}
variable "deploy_env" {
type = object({
deploy_nfssrv = bool
deploy_kolla = bool
install_kolla = bool
deploy_local_registry = bool
use_local_registry = bool
pull_local_registry = bool
pull_magnum_local_registry = bool
})
default = {
deploy_nfssrv = true
deploy_kolla = true
deploy_local_registry = true
install_kolla = true
use_local_registry = true
pull_local_registry = true
pull_magnum_local_registry = true
}
}
variable "openstack_env" {
type = object ({
release = string
deployment = string
network_interface = string
neutron_external_interface = string
neutron_bridge_name = string
api_interface = string
neutron_ext_net_cidr = string
neutron_ext_net_range_start = string
neutron_ext_net_range_end = string
neutron_ext_net_gw = string
neutron_ext_net_dns = string
cinder_nfs_share = string
cinder_nfs_bkp_share = string
kolla_base_distro = string
kolla_internal_vip_address = string
kolla_external_vip_address = string
network_vlan_ranges = string
enable_haproxy = string
enable_cinder = string
enable_cinder_backend_nfs = string
docker_registry_kolla = string
docker_registry_magnum = string
enable_neutron_dvr = string
enable_neutron_provider_networks = string
EXT_NET = string
nfs_uid = string
om_enable_rabbitmq_high_availability = string
})
}
variable "portgroups" {
type = map(object({
pg_name = string
pg_vswname = string
pg_vlan = string
}))
}
variable "vms" {
type = map(object({
numvcpus = number
memsize = number
guest_name = string
disk_store = string
boot_disk_size = number
user = string
password = string
clone_from_vm = string
hostname = string
domain_name = string
ip = string
ip_api = string
ip_octavia = string
ip_tunnel = string
ip_nfs1 = string
ip_nfs1_netmask = string
netmask = string
nic_type = string
}))
default = {
"key" = {
boot_disk_size = "100"
clone_from_vm = "value"
disk_store = "value"
domain_name = "lan.local"
guest_name = "value"
hostname = "value"
ip = "value"
ip_api = "value"
ip_octavia = "value"
ip_tunnel = "value"
ip_nfs1 = "value"
ip_nfs1_netmask = "255.255.255.0"
memsize = "8192"
netmask = "value"
nic_type = "value"
numvcpus = "1"
password = "value"
user = "value"
}
}
}