-
Notifications
You must be signed in to change notification settings - Fork 71
/
main.tf.libvirt.example
67 lines (53 loc) · 1.7 KB
/
main.tf.libvirt.example
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
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 = "uyuni-master"
// 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 = ["opensuse155o"]
}
module "server" {
source = "./modules/server_containerized"
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
// If you want to run the containers on k3s rather than podman
// runtime = "k3s"
// To override the default container repository containing the images
// container_repository = "registry.opensuse.org/systemsmanagement/uyuni/master/servercontainer/containers/uyuni"
// To define a specific container image tag to install
// container_tag =
}
module "minion" {
source = "./modules/minion"
base_configuration = module.base.configuration
name = "minion"
image = "opensuse155o"
server_configuration = module.server.configuration
// see modules/minion/variables.tf for possible values
}