-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.tf.example
37 lines (32 loc) · 931 Bytes
/
main.tf.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
provider "libvirt" {
uri = "qemu:///system"
}
module "base" {
source = "./modules/libvirt/base"
// optional parameters with defaults below
// pool = "default"
network_name = "terraform-network" // change to "" if you change bridge below
# bridge = "br7"
name_prefix = "sf"
}
# this is the only one fixed machine, but can also be removed, if needed.
module "control-node" {
source = "./modules/libvirt/control_node"
image = "opensuse421"
base_configuration = "${module.base.configuration}"
name = "control-node"
}
module "test-client" {
source = "./modules/libvirt/host"
base_configuration = "${module.base.configuration}"
name = "test-client"
image = "opensuse421"
grains = "role: frankzappa"
}
module "tomcat-server" {
source = "./modules/libvirt/host"
base_configuration = "${module.base.configuration}"
name = "tomcat-server"
image = "opensuse421"
grains = "role: tomcat-server"
}