-
Notifications
You must be signed in to change notification settings - Fork 22
/
SUSEManager-5.0-SLE-update.tf
227 lines (188 loc) · 5.92 KB
/
SUSEManager-5.0-SLE-update.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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
// Mandatory variables for terracumber
variable "URL_PREFIX" {
type = string
default = "https://ci.suse.de/view/Manager/view/Manager-5.0/job/manager-5.0-qe-sle-update"
}
// Not really used as this is for --runall parameter, and we run cucumber step by step
variable "CUCUMBER_COMMAND" {
type = string
default = "export PRODUCT='SUSE-Manager' && run-testsuite"
}
variable "CUCUMBER_GITREPO" {
type = string
default = "https://github.com/SUSE/spacewalk.git"
}
variable "CUCUMBER_BRANCH" {
type = string
default = "Manager-5.0"
}
variable "CUCUMBER_RESULTS" {
type = string
default = "/root/spacewalk/testsuite"
}
variable "MAIL_SUBJECT" {
type = string
default = "Results 5.0 SLE Update $status: $tests scenarios ($failures failed, $errors errors, $skipped skipped, $passed passed)"
}
variable "MAIL_TEMPLATE" {
type = string
default = "../mail_templates/mail-template-jenkins.txt"
}
variable "MAIL_SUBJECT_ENV_FAIL" {
type = string
default = "Results 5.0 SLE Update: Environment setup failed"
}
variable "MAIL_TEMPLATE_ENV_FAIL" {
type = string
default = "../mail_templates/mail-template-jenkins-env-fail.txt"
}
variable "MAIL_FROM" {
type = string
default = "galaxy-noise@suse.de"
}
variable "MAIL_TO" {
type = string
default = "galaxy-noise@suse.de"
}
// sumaform specific variables
variable "SCC_USER" {
type = string
}
variable "SCC_PASSWORD" {
type = string
}
variable "GIT_USER" {
type = string
default = null // Not needed for master, as it is public
}
variable "GIT_PASSWORD" {
type = string
default = null // Not needed for master, as it is public
}
terraform {
required_version = "1.0.10"
required_providers {
libvirt = {
source = "dmacvicar/libvirt"
version = "0.6.3"
}
}
}
provider "libvirt" {
uri = "qemu+tcp://riverworld.mgr.prv.suse.net/system"
}
module "base" {
source = "./modules/base"
cc_username = var.SCC_USER
cc_password = var.SCC_PASSWORD
name_prefix = "suma-su-50-"
use_avahi = false
domain = "mgr.prv.suse.net"
images = [ "sles15sp6o", "opensuse155o", "slemicro55o" ]
mirror = "minima-mirror-ci-bv.mgr.prv.suse.net"
use_mirror_images = true
testsuite = true
provider_settings = {
pool = "ssd"
bridge = "br0"
}
}
module "server_containerized" {
source = "./modules/server_containerized"
base_configuration = module.base.configuration
product_version = "5.0-released"
name = "srv"
image = "slemicro55o"
provider_settings = {
mac = "aa:b2:92:05:00:fd"
memory = 16384
vcpu = 4
data_pool = "ssd"
}
main_disk_size = 1500
runtime = "podman"
// Temporary workaround to see if we pass proxy stage. Also needs to be updated on next MU
container_repository = "registry.suse.de/suse/maintenance/35237/suse_sle-15-sp6_update_products_manager50_update_containerfile"
container_tag = "latest"
server_mounted_mirror = "minima-mirror-ci-bv.mgr.prv.suse.net"
auto_accept = false
monitored = true
disable_firewall = false
allow_postgres_connections = false
skip_changelog_import = false
mgr_sync_autologin = false
create_sample_channel = false
create_sample_activation_key = false
create_sample_bootstrap_script = false
publish_private_ssl_key = false
use_os_released_updates = true
disable_download_tokens = false
ssh_key_path = "./salt/controller/id_rsa.pub"
from_email = "root@suse.de"
//server_additional_repos
}
module "proxy_containerized" {
source = "./modules/proxy_containerized"
base_configuration = module.base.configuration
product_version = "5.0-released"
name = "pxy"
image = "slemicro55o"
provider_settings = {
mac = "aa:b2:92:05:00:fe"
memory = 4096
}
server_configuration = {
hostname = "suma-su-50-srv.mgr.prv.suse.net"
username = "admin"
password = "admin"
}
runtime = "podman"
// Temporary workaround to see if we pass proxy stage. Also needs to be updated on next MU
container_repository = "registry.suse.de/suse/maintenance/35237/suse_sle-15-sp6_update_products_manager50_update_containerfile/suse/manager/5.0/x86_64"
container_tag = "latest"
auto_configure = false
ssh_key_path = "./salt/controller/id_rsa.pub"
//proxy_additional_repos
}
module "sles15sp6_minion" {
source = "./modules/minion"
base_configuration = module.base.configuration
product_version = "5.0-released"
name = "min-sles15sp6"
image = "sles15sp6o"
provider_settings = {
mac = "aa:b2:92:05:00:ff"
memory = 4096
}
server_configuration = {
hostname = "suma-su-50-pxy.mgr.prv.suse.net"
}
auto_connect_to_master = false
use_os_released_updates = false
ssh_key_path = "./salt/controller/id_rsa.pub"
//sle15sp6-minion_additional_repos
}
module "controller" {
source = "./modules/controller"
base_configuration = module.base.configuration
name = "ctl"
provider_settings = {
mac = "aa:b2:92:05:00:fc"
memory = 16384
vcpu = 8
}
swap_file_size = null
// Cucumber repository configuration for the controller
git_username = var.GIT_USER
git_password = var.GIT_PASSWORD
git_repo = var.CUCUMBER_GITREPO
branch = var.CUCUMBER_BRANCH
server_configuration = module.server_containerized.configuration
proxy_configuration = module.proxy_containerized.configuration
sle15sp6_minion_configuration = module.sles15sp6_minion.configuration
}
output "configuration" {
value = {
controller = module.controller.configuration
}
}