-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
83 lines (64 loc) · 1.16 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
### Common
variable "project-name" {
default = "jacob"
}
variable "control-names" {
type = list(string)
default = ["ctrl001","ctrl002","ctrl003"]
#default = []
}
variable "compute-names" {
type = list(string)
default = ["com001","com002","com003"]
#default = []
}
variable "ceph-names" {
type = list(string)
default = ["ceph001","ceph002","ceph003"]
}
variable "deploy-name" {
default = "deploy"
}
### Network
variable "deploy-addr" {
default = "10.10.10"
}
variable "internal-addr" {
default = "20.20.20"
}
variable "storage-addr" {
default = "30.30.30"
}
variable "monitor-addr" {
default = "40.40.40"
}
variable "external-addr" {
default = "192.168.122"
}
variable "external-net" {
default = "192.168.122.0/24"
}
# will be x.x.x.5
variable "deploy-ipnum" {
default = "5"
}
# will be x.x.x.10 ~
variable "control-ipnum" {
default = "1"
}
# will be x.x.x.20 ~
variable "compute-ipnum" {
default = "2"
}
# will be x.x.x.30 ~
variable "ceph-ipnum" {
default = "3"
}
### Storage
variable "disk_pool" {
default = "default"
}
variable "fromdisk" {
#default = "centos7.qcow2"
default = "CentOS-7-x86_64-GenericCloud.qcow2"
}