forked from Suse-KevinKlinger/RTDAD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
163 lines (141 loc) · 3.84 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
#
# Libvirt related variables
#
variable "provider_uri" {
description = "URI to connect with the qemu-service."
default = "qemu:///system"
}
variable "cluster_name" {
description = "The cluster name is used as a prefix for all domains and pools"
type = string
default = "test"
}
variable "storage_pool" {
description = "Specifies where the pools (place where the disks) will be stored."
type = string
default = "default"
}
variable "source_image" {
description = "Source image used to boot the machines (qcow2 format). It's possible to specify the path to a local (relative to the machine running the terraform command) image or a remote one. Remote images have to be specified using HTTP(S) urls for now. Specific node images have preference over this value"
type = string
default = ""
}
# CaaSP master node related variables
variable "master_cpu" {
description = "Number of CPUs the master nodes will receive"
type = number
default = 4
}
variable "master_memory" {
description = "Amount of memory the master nodes will receive"
type = number
default = 8192
}
variable "masterHosts" {
description = ""
type = list(object({
ip = string
mac = string
hostname = string
}))
default = []
}
# CaaSP worker node related variables
variable "worker_cpu" {
description = "Number of CPUs the worker nodes will receive"
type = number
default = 4
}
variable "worker_memory" {
description = "Amount of memory the worker nodes will receive"
type = number
default = 32768
}
variable "workerHosts" {
description = ""
type = list(object({
ip = string
mac = string
hostname = string
}))
default = []
}
# Workstation related variables
variable "workstation" {
description = ""
type = object({
ip = string
hostname = string
cpu = number
memory = number
})
default = {
ip = ""
hostname = "Workstation"
cpu = 4
memory = 16384
}
}
# RKE related variables
variable "nodes" {
description = ""
type = list(object({
private_ip = string
hostname = string
roles = list(string)
user = string
ssh_key = string
}))
default = []
}
# Kubernetes related variables
variable "k8s_namespace" {
description = "The Kubernetes namespace that will be created and be used for secrets, storageClasses, etc."
type = string
default = "di"
}
variable "ceph_admin_secret" {
description = "The key that can be used to access the SES storage as admin user"
type = string
default = ""
}
variable "ceph_user_secret" {
description = "The key that can be used to access the SES storage as desired user"
type = string
default = ""
}
variable "registry_ip" {
description = "IP address of the private container registry to be used for SAP DI"
type = string
default = ""
}
variable "registry_fqdn" {
description = "FQDN of the private container registry to be used for SAP DI"
type = string
default = ""
}
variable "registry_hostname" {
description = "Hostname of the private container registry to be used for SAP DI"
type = string
default = ""
}
variable "rancherUI_address" {
description = "FQDN of where the Rancher UI should be reached at"
type = string
default = ""
}
variable "rancherUI_version" {
description = "Desired version of the Rancher UI to be deployed"
type = string
default = "v2.5.6"
}
variable "cert_manager_version" {
description = "Desired version of the Cert-Manager to be deployed"
type = string
default = "v1.0.4"
}
variable "rke_Version" {
description = "Specifies the RKE version and by this the Kubernetes version to be used"
type = string
default = "v1.18.16-rancher1-1"
}