-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
151 lines (124 loc) · 3.7 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
#####################
# libvirt variables #
#####################
variable "libvirt_uri" {
default = "qemu:///system"
description = "libvirt connection url - default to localhost"
}
variable "pool" {
default = "default"
description = "pool to be used to store all the volumes"
}
#####################
# Cluster variables #
#####################
## fixme: see issue https://github.com/SUSE/avant-garde/issues/91
variable "img_source_url" {
# type = string
default = "SLES15-SP1-JeOS.x86_64-15.1-OpenStack-Cloud-GMC3.qcow2"
}
variable "repositories" {
# type = string
default = "https://download.opensuse.org/repositories/devel:/CaaSP:/Head:/ControllerNode/openSUSE_Leap_15.0"
# default = [
# {
# caasp_devel_leap15 = "https://download.opensuse.org/repositories/devel:/CaaSP:/Head:/ControllerNode/openSUSE_Leap_15.0"
# },
# ]
description = "Urls of the repositories to mount via cloud-init"
}
variable "caasp_registry_code" {
default = "INTERNAL-USE-ONLY-e62a127779ce75cc"
description = "TBD"
}
variable "sle_registry_code" {
default = "INTERNAL-USE-ONLY-5f03b309b9b3a613"
description = "TBD"
}
variable "lb_memory" {
default = 2048
description = "The amount of RAM for a load balancer node"
}
variable "lb_vcpu" {
default = 1
description = "The amount of virtual CPUs for a load balancer node"
}
variable "master_count" {
default = 1
description = "Number of masters to be created"
}
variable "master_memory" {
default = 8192
description = "The amount of RAM for a master"
}
variable "master_vcpu" {
default = 2
description = "The amount of virtual CPUs for a master"
}
variable "worker_count" {
default = 2
description = "Number of workers to be created"
}
variable "worker_memory" {
default = 16384
description = "The amount of RAM for a worker"
}
variable "worker_vcpu" {
default = 2
description = "The amount of virtual CPUs for a worker"
}
variable "name_prefix" {
# type = string
default = "sapdh27"
description = "Optional prefix to be able to have multiple clusters on one host"
}
variable "domain_name" {
# type = string
default = "suse-sap.net"
description = "The domain name"
}
variable "net_mode" {
# type = string
default = "nat"
description = "Network mode used by the cluster"
}
variable "network" {
# type = string
default = "10.110.0.0/22"
description = "Network used by the cluster"
}
variable "authorized_keys" {
# type = list(string)
default = ["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDCvbaSjWaahntI3QRFcNuHzvykn5J//eZEfwhB3uSCqroUyompB0gORKEkrOoEhl3tFkZUIvdoEv4Nx5vHYnntpHvzQR3zV01kB/0pIGnAyNE+DMy8qKtL++VzPF1CaPU0BJRZjR49h78Ed2C7MuMaKTnQGR4rsS9zxn8Lspld+L2ZWTacfQiAU878p23ADKMgfkETTiAR0EgEmaN0oHIjFJrCxvz6eZe9GoBHKNlj7PKm/+hxsuP+O4+xu97kB71zdFgKSV7GnI059ggH7rlpjaYgibvOXWoMAEosC9GPjRJMH54cDQaKagarSazrkfeS5x7VyHzZJS84GOmvs2Wf root@nodea"]
description = "ssh keys to inject into all the nodes"
}
variable "packages" {
# type = list(string)
default = [
"kubernetes-kubeadm",
"kubernetes-kubelet",
"kubernetes-client",
"cri-o",
"cni-plugins",
"podman",
"-docker",
"-containerd",
"-docker-runc",
"-docker-libnetwork",
]
description = "list of additional packages to install"
}
variable "username" {
default = "sles"
description = "Username for the cluster nodes"
}
variable "password" {
default = "linux"
description = "Password for the cluster nodes"
}
# Extend disk size to 24G (JeOS-KVM default size) because we use
# JeOS-OpenStack instead of JeOS-KVM image with libvirt provider
variable "disk_size" {
default = "25769803776"
description = "disk size (in bytes)"
}