forked from uyuni-project/sumaform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf.libvirt.example
71 lines (56 loc) · 1.93 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
68
69
70
71
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 = ""
// 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"
product_version = "uyuni-master"
// 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 =
// To override the URL to the helm chart to install
// helm_chart_url = "oci://registry.opensuse.org/systemsmanagement/uyuni/master/servercontainer/charts/uyuni/server"
}
module "minion" {
source = "./modules/minion"
base_configuration = module.base.configuration
name = "minion"
image = "opensuse155o"
server_configuration = module.server.configuration
product_version = module.server.configuration.product_version
// see modules/minion/variables.tf for possible values
}