-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
44 lines (39 loc) · 854 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
38
39
40
41
42
43
44
terraform {
required_providers {
dcnm = {
source = "CiscoDevNet/dcnm"
version = "1.2.7"
}
}
backend "http" {
}
}
provider "dcnm" {
username = var.nd_username
password = var.nd_password
url = var.ndfc.url
platform = var.ndfc.platform
}
module "interfaces" {
source = "./modules/interface"
inventory = var.inventory
fabric_name = var.fabric_name
loopbacks = var.loopbacks
vpcs = var.vpcs
}
module "overlay" {
depends_on = [module.interfaces]
source = "./modules/overlay"
fabric_name = var.fabric_name
inventory = var.inventory
vrfs = var.vrfs
networks = var.networks
}
# bonus
module "policy" {
source = "./modules/policy"
fabric_name = var.fabric_name
inventory = var.inventory
templates = var.templates
policies = var.policies
}