forked from uyuni-project/sumaform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf.uyuni.example
100 lines (88 loc) · 2.44 KB
/
main.tf.uyuni.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
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
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 = "UC7"
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 specific properties
// provider_settings = {
// bridge = null
// pool = "default"
// network_name = "default" // change to "" if you change bridge below
// additional_network = null
// }
// Required images
images = ["centos7", "opensuse153o", "ubuntu1804"]
}
module "server" {
source = "./modules/server"
base_configuration = module.base.configuration
product_version = "uyuni-master"
name = "srv"
image = "opensuse153o"
use_os_released_updates = true
// see modules/server/variables.tf for possible values
provider_settings = {
memory = 8192
vcpu = 4
}
// connect_to_additional_network = true
// if you want to use two networks
}
module "redhat-minion" {
source = "./modules/minion"
base_configuration = module.base.configuration
product_version = "uyuni-master"
name = "min-centos7"
image = "centos7"
server_configuration = module.server.configuration
provider_settings = {
memory = 1024
}
// see modules/minion/variables.tf for possible values
}
module "debian-minion" {
source = "./modules/minion"
base_configuration = module.base.configuration
product_version = "uyuni-master"
name = "min-ubuntu1804"
image = "ubuntu1804"
server_configuration = module.server.configuration
provider_settings = {
memory = 1024
}
// see modules/minion/variables.tf for possible values
}
module "kvm-host" {
source = "./modules/virthost"
base_configuration = module.base.configuration
product_version = "uyuni-master"
name = "min-kvm"
image = "opensuse153o"
server_configuration = module.server.configuration
// see modules/virthost/variables.tf for possible values
}
module "xen-host" {
source = "./modules/virthost"
base_configuration = module.base.configuration
product_version = "uyuni-master"
name = "min-xen"
image = "opensuse153o"
server_configuration = module.server.configuration
// see modules/virthost/variables.tf for possible values
}