forked from uyuni-project/sumaform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf.core
49 lines (44 loc) · 1.12 KB
/
main.tf.core
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
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 = "UCB"
cc_password = "haha"
images = ["opensuse154o"]
ssh_key_path = "~/.ssh/id_ed25519.pub"
// optional parameters with defaults below
// use_avahi = true
// name_prefix = "" // if you use name_prefix, make sure to update the server_configuration for clients/minions below
// timezone = "Europe/Berlin"
// use_ntp = true
provider_settings = {
network_name = null // "default" // change to null if you add a bridge below
//additional_network = null
bridge = "br0"
//pool = "default"
}
}
module "host" {
source = "./modules/host"
base_configuration = module.base.configuration
name = "test-openqa"
image = "opensuse154o"
provider_settings = {
memory = 8192
vcpu = 4
cpu_model = "host-passthrough"
}
roles = ["openqa"]
//server_configuration = module.server.configuration
// see modules/client/variables.tf for possible values
}