forked from SUSE/susemanager-ci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSUSEManager-Test-Naica-NUE.tf
219 lines (191 loc) · 5.17 KB
/
SUSEManager-Test-Naica-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
210
211
212
213
214
215
216
217
218
219
// Mandatory variables for terracumber
variable "URL_PREFIX" {
type = string
default = "https://ci.suse.de/view/Manager/view/Manager-Test/job/manager-TEST-Naica-acceptance-tests"
}
// Not really used as this is for --runall parameter, and we run cucumber step by step
variable "CUCUMBER_COMMAND" {
type = string
default = "export PRODUCT='Uyuni' && run-testsuite"
}
variable "CUCUMBER_GITREPO" {
type = string
default = "https://github.com/uyuni-project/uyuni.git"
}
variable "CUCUMBER_BRANCH" {
type = string
default = "master"
}
variable "CUCUMBER_RESULTS" {
type = string
default = "/root/spacewalk/testsuite"
}
variable "MAIL_SUBJECT" {
type = string
default = "Results TEST-NAICA $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 TEST-NAICA: 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 = "[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://cthulhu.mgr.suse.de/system"
}
module "cucumber_testsuite" {
source = "./modules/cucumber_testsuite"
product_version = "head"
// 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 = ["rocky8o", "opensuse155o", "ubuntu2204o", "sles15sp4o", "slemicro55o"]
use_avahi = false
name_prefix = "suma-test-naica-"
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"
container_server = true
container_proxy = true
mirror = "minima-mirror-ci-bv.mgr.suse.de"
use_mirror_images = true
server_http_proxy = "http-proxy.mgr.suse.de:3128"
custom_download_endpoint = "ftp://minima-mirror-ci-bv.mgr.suse.de:445"
host_settings = {
controller = {
provider_settings = {
mac = "aa:b2:93:01:00:60"
}
}
server_containerized = {
image = "slemicro55o"
provider_settings = {
mac = "aa:b2:93:01:00:61"
vcpu = 8
memory = 32768
}
main_disk_size = 500
login_timeout = 28800
runtime = "podman"
container_repository = "registry.suse.de/devel/galaxy/manager/head/containerfile"
container_tag = "latest"
}
proxy_containerized = {
image = "slemicro55o"
provider_settings = {
mac = "aa:b2:93:01:00:62"
vcpu = 2
memory = 2048
}
main_disk_size = 200
runtime = "podman"
container_repository = "registry.suse.de/devel/galaxy/manager/head/containerfile"
container_tag = "latest"
}
suse_client = {
image = "sles15sp4o"
provider_settings = {
mac = "aa:b2:93:01:00:64"
}
}
suse_minion = {
image = "sles15sp4o"
provider_settings = {
mac = "aa:b2:93:01:00:66"
}
}
suse_sshminion = {
image = "sles15sp4o"
provider_settings = {
mac = "aa:b2:93:01:00:68"
}
}
rhlike_minion = {
image = "rocky8o"
provider_settings = {
mac = "aa:b2:93:01:00:69"
// 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
memory = 2048
vcpu = 2
}
}
deblike_minion = {
image = "ubuntu2204o"
provider_settings = {
mac = "aa:b2:93:01:00:6b"
}
}
build_host = {
image = "sles15sp4o"
provider_settings = {
mac = "aa:b2:93:01:00:6d"
memory = 2048
}
}
dhcp_dns = {
name = "dhcp-dns"
image = "opensuse155o"
hypervisor = {
host = "cthulhu.mgr.suse.de"
user = "root"
private_key = file("~/.ssh/id_rsa")
}
}
}
provider_settings = {
pool = "ssd"
network_name = null
bridge = "br0"
additional_network = "192.168.142.0/24"
}
}
output "configuration" {
value = module.cucumber_testsuite.configuration
}