-
Notifications
You must be signed in to change notification settings - Fork 1
/
backend.tf
96 lines (85 loc) · 2.35 KB
/
backend.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
terraform {
required_version = ">= 0.14.0"
required_providers {
openstack = {
source = "terraform-provider-openstack/openstack"
version = "~> 1.51.1"
}
ovh = {
source = "ovh/ovh"
}
vyos = {
source = "TGNThump/vyos"
version = "2.1.0"
}
}
}
provider "ovh" {
endpoint = "ovh-eu"
application_key = var.ovh_application_key
application_secret = var.ovh_application_secret
consumer_key = var.ovh_consumer_key
}
provider "openstack" {
user_name = var.openstack_username_pc1
password = var.openstack_password_pc1
auth_url = var.openstack_auth_url
project_domain_name = var.openstack_project_domain_name
user_domain_name = var.openstack_user_domain_name
// Public Cloud project 1
alias = "PC1"
}
provider "openstack" {
user_name = var.openstack_username_pc2
password = var.openstack_password_pc2
auth_url = var.openstack_auth_url
project_domain_name = var.openstack_project_domain_name
user_domain_name = var.openstack_user_domain_name
// Public Cloud project 2
alias = "PC2"
}
provider "vyos" {
endpoint = local.vyos.gra9-leaf-1.endpoint
api_key = local.vyos.gra9-leaf-1.api_key
alias = "gra9-leaf-1"
}
provider "vyos" {
endpoint = local.vyos.gra9-leaf-2.endpoint
api_key = local.vyos.gra9-leaf-2.api_key
alias = "gra9-leaf-2"
}
provider "vyos" {
endpoint = local.vyos.gra9-spine-1.endpoint
api_key = local.vyos.gra9-spine-1.api_key
alias = "gra9-spine-1"
}
provider "vyos" {
endpoint = local.vyos.gra11-leaf-1.endpoint
api_key = local.vyos.gra11-leaf-1.api_key
alias = "gra11-leaf-1"
}
provider "vyos" {
endpoint = local.vyos.gra11-leaf-2.endpoint
api_key = local.vyos.gra11-leaf-2.api_key
alias = "gra11-leaf-2"
}
provider "vyos" {
endpoint = local.vyos.gra11-spine-1.endpoint
api_key = local.vyos.gra11-spine-1.api_key
alias = "gra11-spine-1"
}
provider "vyos" {
endpoint = local.vyos.sbg5-leaf-1.endpoint
api_key = local.vyos.sbg5-leaf-1.api_key
alias = "sbg5-leaf-1"
}
provider "vyos" {
endpoint = local.vyos.sbg5-leaf-2.endpoint
api_key = local.vyos.sbg5-leaf-2.api_key
alias = "sbg5-leaf-2"
}
provider "vyos" {
endpoint = local.vyos.sbg5-spine-1.endpoint
api_key = local.vyos.sbg5-spine-1.api_key
alias = "sbg5-spine-1"
}