-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlbs-vars.tf
95 lines (79 loc) · 2.25 KB
/
lbs-vars.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
## ## specific to lb servers
# if you want this to talk and run the setup scripts then you gotta give
# some pathing so that execution can happen
variable "lb_public_key_path" {
description = "public key"
default = "~/.ssh/ansible.pub"
}
variable "lb_private_key_path" {
description = "private key"
default = "~/.ssh/ansible"
}
# and which script do we push up? It can do anything!
variable "lb_provision_src_path" {
description = "script source to feed the monsters"
default = "scripts/lb_install.sh"
}
variable "lb_provision_dest_path" {
description = "script destination to feed the monsters"
default = "/tmp/install.sh"
}
# let's configure the vCPU and RAM allocations
variable "lb_vcpu" {
description = "how many vCPUs do we want?"
default = "1"
}
variable "lb_mem" {
description = "how much RAM do we want?"
default = "1024"
}
# this is a little tricky - we need to have <x> number of lbservers
# running but we need to have allocated IPs to match up and we can not
# do this programmatically
#
# this is important - if you are changing the number of servers then you
# *must* also make sure you have enough IPs to support such
variable "lb_how_many" {
default = "1"
}
# create map of the final octet for networking
variable "lb_last_octets" {
default = {
"0" = "100"
"1" = "101"
"2" = "102"
"3" = "103"
"4" = "104"
"5" = "105"
}
}
variable "lb_ext_network_switch" {
description = "which standard or vDS switch will the VM live?"
default = "VLAN_0020_RAZR"
}
variable "lb_ext_ip_network" {
description = "first three octets of network"
default = "192.168.20"
}
variable "lb_ext_ip_cidr" {
description = "cidr bit-length"
default = "24"
}
variable "lb_ext_ip_gateway" {
description = "default IPv4 gateway"
default = "192.168.20.254"
}
# commented out in lbs.tf - do you have a reason for
# multiple networks? If so, then have at it!
variable "lb_int_network_switch" {
description = "which standard or vDS switch will the VM live?"
default = "lb_internal_network"
}
variable "lb_int_ip_network" {
description = "first three octets of network"
default = "172.30.145"
}
variable "lb_int_ip_cidr" {
description = "cidr bit-length"
default = "24"
}