-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmain.tf-salt-shaker
113 lines (92 loc) · 2.43 KB
/
main.tf-salt-shaker
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
// Mandatory variables for terracumber
variable "URL_PREFIX" {
type = string
default = "https://ci.suse.de/user/manager/my-views/view/Salt%20Shaker/job/manager-salt-shaker-products-next-sles12sp5-bundle"
}
// Not really used as this is for --runall parameter, and we run cucumber step by step
variable "CUCUMBER_COMMAND" {
type = string
default = "echo EXECUTE SALT TESTS HERE"
}
variable "CUCUMBER_BRANCH" {
type = string
default = "master"
}
variable "CUCUMBER_RESULTS" {
type = string
default = "/root/"
}
variable "MAIL_SUBJECT" {
type = string
default = "Results Salt Shaker - products:next - SLES12SP5 Salt Bundle $status: $tests scenarios ($failures failed, $errors errors, $skipped skipped, $passed passed)"
}
variable "MAIL_TEMPLATE" {
type = string
default = "../mail_templates/mail-template-salt-shaker.txt"
}
variable "MAIL_SUBJECT_ENV_FAIL" {
type = string
default = "Results Salt Shaker - products:next - SLES12SP5 Salt Bundle: Environment setup failed"
}
variable "MAIL_TEMPLATE_ENV_FAIL" {
type = string
default = "../mail_templates/mail-template-salt-shaker-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
default = null // Not needed for Salt tests
}
variable "SCC_PASSWORD" {
type = string
default = null // Not needed for Salt tests
}
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:///system"
}
module "base" {
source = "./modules/base"
cc_username = var.SCC_USER
cc_password = var.SCC_PASSWORD
provider_settings = {
pool = "ssd"
network_name = null
bridge = "br0"
}
images = [ "sles12sp5o" ]
}
module "salt-test-node" {
source = "./modules/salt_testenv"
base_configuration = module.base.configuration
name = "salt-shaker-products-next-sles12sp5-bundle"
image = "sles12sp5o"
salt_obs_flavor = "products:next"
}
output "configuration" {
value = module.salt-test-node.configuration
}