-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
37 lines (34 loc) · 885 Bytes
/
main.tf
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
terraform {
required_providers {
openstack = {
source = "terraform-provider-openstack/openstack"
configuration_aliases = [openstack.Sto2, openstack.sto1hs]
}
}
required_version = ">= 0.14"
}
provider "openstack" {
alias = "Sto2"
auth_url = "https://xx:5000"
region = "Sto2"
user_domain_name = "xxx"
project_domain_name = "xxx"
use_octavia = "true"
tenant_name = "xxx"
}
provider "openstack" {
alias = "sto1hs"
auth_url = "https://xxx:5000"
region = "sto1hs"
user_domain_name = "xxx"
project_domain_name = "xxx"
use_octavia = "true"
tenant_name = "xxx"
}
module "multi_rule" {
providers = {
openstack.sto1hs = openstack.sto1hs
openstack.Sto2 = openstack.Sto2
}
source = "../modules/test"
}