forked from uyuni-project/sumaform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf.ssh.example
60 lines (47 loc) · 1.32 KB
/
main.tf.ssh.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
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_settings = {
// additional_network = null
// }
}
module "server" {
source = "./modules/server"
base_configuration = module.base.configuration
name = "server"
product_version = "4.2-nightly"
// see modules/suse_manager/variables.tf for possible values
// connect_to_additional_network = true
// if you want to use two networks
provider_settings = {
host = "192.168.1.1"
}
}
module "client" {
source = "./modules/client"
base_configuration = module.base.configuration
name = "client"
image = "sles15sp4o"
server_configuration = module.server.configuration
// see modules/client/variables.tf for possible values
provider_settings = {
host = "192.168.1.2"
}
}
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
provider_settings = {
host = "192.168.1.3"
}
}