forked from cbosdo/sumaform
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tf.openstack.example
More file actions
58 lines (46 loc) · 1.5 KB
/
Copy pathmain.tf.openstack.example
File metadata and controls
58 lines (46 loc) · 1.5 KB
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
provider "openstack" {
version = "~> 1.2"
user_name = ...
password = ...
// below are valid values to target the SUSE internal "ECP" Cloud
// for the SUSE Manager project. Adapt as needed
auth_url = "https://engcloud.prv.suse.net:5000/v3"
domain_name = "ldap_users"
tenant_id = "609ad0b07a414b40bd4884768bf6ac89"
}
module "base" {
source = "./modules/openstack/base"
cc_username = "UC7"
cc_password = ...
// optional parameters with defaults below
// name_prefix = ""
// timezone = "Europe/Berlin"
// comment-out the following two lines if you are not targeting the SUSE internal "ECP" Cloud
mirror = "mirror.tf.local"
use_shared_resources = true
}
module "server" {
source = "./modules/openstack/suse_manager"
base_configuration = "${module.base.configuration}"
name = "server"
product_version = "3.1-nightly"
// see modules/openstack/suse_manager/variables.tf for possible values
}
module "client" {
source = "./modules/openstack/client"
base_configuration = "${module.base.configuration}"
name = "client"
image = "sles12sp3"
server_configuration = "${module.server.configuration}"
count = 1
// see modules/openstack/client/variables.tf for possible values
}
module "minion" {
source = "./modules/openstack/minion"
base_configuration = "${module.base.configuration}"
name = "minion"
image = "sles12sp3"
server_configuration = "${module.server.configuration}"
count = 1
// see modules/openstack/minion/variables.tf for possible values
}