forked from SUSE/susemanager-ci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSUSEManager-4.3-refenv-PRV.tf
208 lines (175 loc) · 6.35 KB
/
SUSEManager-4.3-refenv-PRV.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
// Mandatory variables for terracumber
variable "URL_PREFIX" {
type = string
default = "https://ci.suse.de/view/Manager/view/Manager-4.3/job/manager-4.3-infra-reference-PRV"
}
// 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 REF4.3-PRV $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 REF4.3-PRV: 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
}
terraform {
required_version = "1.0.10"
required_providers {
libvirt = {
source = "dmacvicar/libvirt"
version = "0.6.3"
}
}
}
provider "libvirt" {
uri = "qemu+tcp://metropolis.mgr.prv.suse.net/system"
}
module "base" {
source = "./modules/base"
cc_username = var.SCC_USER
cc_password = var.SCC_PASSWORD
name_prefix = "suma-ref-43-"
use_avahi = false
domain = "mgr.prv.suse.net"
images = ["centos7o", "sles15sp2o", "sles15sp3o", "sles15sp4o", "ubuntu2204o"]
mirror = "minima-mirror-ci-bv.mgr.prv.suse.net"
use_mirror_images = true
product_version = "4.3-nightly"
provider_settings = {
pool = "ssd"
network_name = null
bridge = "br1"
}
}
module "server" {
source = "./modules/server"
name = "server"
base_configuration = module.base.configuration
monitored = true
use_os_released_updates = true
disable_download_tokens = false
from_email = "[email protected]"
channels = ["sle-product-sles15-sp4-pool-x86_64", "sle-product-sles15-sp4-updates-x86_64", "sle-module-basesystem15-sp4-pool-x86_64", "sle-module-basesystem15-sp4-updates-x86_64", "sle-module-containers15-sp4-pool-x86_64", "sle-module-containers15-sp4-updates-x86_64", "sle-manager-tools15-pool-x86_64-sp3", "sle-manager-tools15-updates-x86_64-sp3", "sle-module-server-applications15-sp4-pool-x86_64", "sle-module-server-applications15-sp4-updates-x86_64"]
provider_settings = {
mac = "aa:b2:92:03:00:91"
memory = 8192
}
}
module "suse_client" {
source = "./modules/client"
base_configuration = module.base.configuration
image = "sles15sp4o"
name = "suse-client"
server_configuration = module.server.configuration
use_os_released_updates = true
provider_settings = {
mac = "aa:b2:92:03:00:96"
}
}
module "suse_minion" {
source = "./modules/minion"
base_configuration = module.base.configuration
image = "sles15sp3o" // left with SP3 since we update it to SP4 in the testsuite
name = "suse-minion"
server_configuration = module.server.configuration
use_os_released_updates = true
provider_settings = {
mac = "aa:b2:92:03:00:98"
}
}
module "rhlike_minion" {
source = "./modules/minion"
base_configuration = module.base.configuration
image = "centos7o"
name = "rhlike-minion"
server_configuration = module.server.configuration
auto_connect_to_master = false
provider_settings = {
mac = "aa:b2:92:03:00:9a"
// 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
}
}
module "deblike_minion" {
source = "./modules/minion"
base_configuration = module.base.configuration
image = "ubuntu2204o"
name = "deblike-minion"
server_configuration = module.server.configuration
provider_settings = {
mac = "aa:b2:92:03:00:9b"
}
}
module "build_host" {
source = "./modules/build_host"
base_configuration = module.base.configuration
image = "sles15sp4o"
name = "build-host"
server_configuration = module.server.configuration
provider_settings = {
mac = "aa:b2:92:03:00:9d"
}
additional_repos = {
cloud_pool_repo = "http://minima-mirror-ci-bv.mgr.prv.suse.net/SUSE/Products/SLE-Module-Public-Cloud/15-SP4/x86_64/product/",
cloud_updates_repo = "http://minima-mirror-ci-bv.mgr.prv.suse.net/SUSE/Updates/SLE-Module-Public-Cloud/15-SP4/x86_64/update/",
desktop_pool_repo = "http://minima-mirror-ci-bv.mgr.prv.suse.net/SUSE/Products/SLE-Module-Desktop-Applications/15-SP4/x86_64/product/",
desktop_updates_repo = "http://minima-mirror-ci-bv.mgr.prv.suse.net/SUSE/Updates/SLE-Module-Desktop-Applications/15-SP4/x86_64/update/",
devel_pool_repo = "http://minima-mirror-ci-bv.mgr.prv.suse.net/SUSE/Products/SLE-Module-Development-Tools/15-SP4/x86_64/product/",
devel_updates_repo = "http://minima-mirror-ci-bv.mgr.prv.suse.net/SUSE/Updates/SLE-Module-Development-Tools/15-SP4/x86_64/update/"
}
}
module "kvm_host" {
source = "./modules/virthost"
base_configuration = module.base.configuration
image = "sles15sp4o"
name = "kvm-host"
server_configuration = module.server.configuration
provider_settings = {
mac = "aa:b2:92:03:00:9e"
}
}