-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
65 lines (52 loc) · 1.55 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
terraform {
required_version = "~> 1.3.0"
required_providers {
intersight = {
source = "CiscoDevNet/intersight"
version = ">=1.0.20"
}
}
}
provider "intersight" {
apikey = var.api_key
secretkey = var.secretkey
endpoint = var.endpoint
}
data "intersight_organization_organization" "default" {
name = "default"
}
# print default org moid
output "org_default_moid" {
value = data.intersight_organization_organization.default.moid
}
module "intersight_policy_bundle" {
source = "github.com/pl247/tf-intersight-policy-bundle"
# external sources
organization = data.intersight_organization_organization.default.id
# every policy created will have this prefix in its name
policy_prefix = "pdc"
description = "Built by Terraform"
# Fabric Interconnect 6454 config specifics
server_ports_6454 = [17, 18, 19, 20]
port_channel_6454 = [49, 50]
uplink_vlans_6454 = {
"vlan-998" : 998,
"vlan-999" : 999
}
fc_port_count_6454 = 4
imc_access_vlan = 998
imc_admin_password = "Cisco123"
ntp_servers = ["ca.pool.ntp.org"]
dns_preferred = "172.22.16.254"
dns_alternate = "172.22.16.253"
ntp_timezone = "America/Winnipeg"
# starting values for wwnn, wwpn-a/b and mac pools (size 255)
wwnn-block = "20:00:00:CA:FE:00:00:01"
wwpn-a-block = "20:00:00:CA:FE:0A:00:01"
wwpn-b-block = "20:00:00:CA:FE:0B:00:01"
mac-block = "00:CA:FE:00:00:01"
tags = [
{ "key" : "Environment", "value" : "PDC-Prod" },
{ "key" : "Orchestrator", "value" : "Terraform" }
]
}