-
Notifications
You must be signed in to change notification settings - Fork 71
/
main.tf.libvirt.example.Manager-43
58 lines (47 loc) · 1.33 KB
/
main.tf.libvirt.example.Manager-43
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
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"
// Set SUSE Customer Center credentials here if you have some
// cc_username = ""
// cc_password = ""
product_version = "4.3-nightly"
// 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 = "default" // change to null if you add a bridge below
// additional_network = null
// bridge = null
// pool = "default"
// }
images = ["sles15sp4o"]
}
module "server" {
source = "./modules/server"
base_configuration = module.base.configuration
name = "server"
// see modules/server_containerized/variables.tf for possible values
// connect_to_additional_network = true
// if you want to use two networks
}
module "minion" {
source = "./modules/minion"
base_configuration = module.base.configuration
name = "minion"
image = "sles15sp4o"
server_configuration = module.server.configuration
// see modules/minion/variables.tf for possible values
}