-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
28 lines (25 loc) · 932 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
terraform {
required_version = ">= 1.4.2"
required_providers {
openstack = {
source = "terraform-provider-openstack/openstack"
version = "~> 1.51.0"
}
cloudvps = {
source = "terraform.wmcloud.org/registry/cloudvps"
version = "~> 0.2.0"
}
}
}
provider "openstack" {
auth_url = var.auth-url[var.datacenter]
tenant_id = var.project[var.datacenter]
application_credential_id = var.application_credential_id[var.datacenter]
application_credential_secret = var.application_credential_secret[var.datacenter]
}
provider "cloudvps" {
os_auth_url = var.auth-url[var.datacenter]
os_project_id = var.project[var.datacenter]
os_application_credential_id = var.application_credential_id[var.datacenter]
os_application_credential_secret = var.application_credential_secret[var.datacenter]
}