forked from SUSE/susemanager-ci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSUSEManager-4.3-refenv-NUE.tf
209 lines (183 loc) · 4.91 KB
/
SUSEManager-4.3-refenv-NUE.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
// Mandatory variables for terracumber
variable "URL_PREFIX" {
type = string
default = "https://ci.suse.de/view/Manager/view/Manager-Head/job/manager-43-infra-reference-NUE"
}
// 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"
}
// Not really used in this pipeline, as we do not run cucumber
variable "CUCUMBER_GITREPO" {
type = string
default = "https://github.com/SUSE/spacewalk.git"
}
// Not really used in this pipeline, as we do not run cucumber
variable "CUCUMBER_BRANCH" {
type = string
default = "Manager-4.3"
}
// Not really used in this pipeline, as we do not run cucumber
variable "CUCUMBER_RESULTS" {
type = string
default = "/root/spacewalk/testsuite"
}
// Not really used in this pipeline, as we do not send emails on success (no cucumber results)
variable "MAIL_SUBJECT" {
type = string
default = "Results Ref43-NUE $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 Ref43-NUE: Environment setup failed"
}
variable "MAIL_TEMPLATE_ENV_FAIL" {
type = string
default = "../mail_templates/mail-template-jenkins-refenv-fail.txt"
}
variable "MAIL_FROM" {
type = string
default = "[email protected]"
}
variable "MAIL_TO" {
type = string
default = "[email protected]"
}
// 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://suma-02.mgr.suse.de/system"
}
module "cucumber_testsuite" {
source = "./modules/cucumber_testsuite"
product_version = "4.3-nightly"
// 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
cc_username = var.SCC_USER
cc_password = var.SCC_PASSWORD
images = ["centos7o", "opensuse155o", "sles15sp4o", "ubuntu2204o"]
use_avahi = false
name_prefix = "suma-ref-43-"
domain = "mgr.suse.de"
from_email = "[email protected]"
no_auth_registry = "registry.mgr.suse.de"
auth_registry = "registry.mgr.suse.de:5000/cucutest"
auth_registry_username = "cucutest"
auth_registry_password = "cucusecret"
git_profiles_repo = "https://github.com/uyuni-project/uyuni.git#:testsuite/features/profiles/internal_nue"
server_http_proxy = "http-proxy.mgr.suse.de:3128"
custom_download_endpoint = "ftp://minima-mirror-ci-bv.mgr.suse.de:445"
# when changing images, please also keep in mind to adjust the image matrix at the end of the README.
host_settings = {
controller = {
provider_settings = {
mac = "aa:b2:93:01:00:a0"
vcpu = 2
memory = 2048
}
}
server = {
provider_settings = {
mac = "aa:b2:93:01:00:a1"
vcpu = 4
memory = 16384
}
main_disk_size = 300
}
proxy = {
provider_settings = {
mac = "aa:b2:93:01:00:a2"
vcpu = 2
memory = 2048
}
}
suse_minion = {
image = "sles15sp4o"
provider_settings = {
mac = "aa:b2:93:01:00:a6"
vcpu = 2
memory = 2048
}
}
suse_sshminion = {
image = "sles15sp4o"
provider_settings = {
mac = "aa:b2:93:01:00:a8"
vcpu = 2
memory = 2048
}
}
rhlike_minion = {
image = "centos7o"
provider_settings = {
mac = "aa:b2:93:01:00:a9"
// Since start of May we have problems with the instance not booting after a restart if there is only a CPU and only 1024Mb for RAM
// Also, openscap cannot run with less than 1.25 GB of RAM
vcpu = 2
memory = 2048
}
}
deblike_minion = {
image = "ubuntu2204o"
provider_settings = {
mac = "aa:b2:93:01:00:ab"
vcpu = 2
memory = 2048
}
}
build_host = {
image = "sles15sp4o"
provider_settings = {
mac = "aa:b2:93:01:00:ad"
vcpu = 2
memory = 2048
}
}
kvm_host = {
image = "sles15sp4o"
provider_settings = {
mac = "aa:b2:93:01:00:ae"
vcpu = 2
memory = 2048
}
}
}
provider_settings = {
pool = "ssd"
network_name = null
bridge = "br0"
}
}
output "configuration" {
value = module.cucumber_testsuite.configuration
}