-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpolicy_network_connectivity.tf
More file actions
57 lines (47 loc) · 1.22 KB
/
Copy pathpolicy_network_connectivity.tf
File metadata and controls
57 lines (47 loc) · 1.22 KB
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
# This resource has a problem. Intersight returns a value
# for the IPv6 name server even when IPv6 is disabled.
# This causes the resoruce to appear to need to be changed
# on every run.
# https://github.com/CiscoDevNet/terraform-provider-intersight/issues/104
resource "intersight_networkconfig_policy" "default" {
name = "default"
dynamic "tags" {
for_each = local.tags
content {
key = tags.key
value = tags.value
}
}
organization {
moid = local.organization
}
enable_dynamic_dns = false
# ipv4
enable_ipv4dns_from_dhcp = false
preferred_ipv4dns_server = "10.10.10.1"
alternate_ipv4dns_server = "10.10.10.2"
# ipv6
enable_ipv6 = false
enable_ipv6dns_from_dhcp = false
}
resource "intersight_networkconfig_policy" "default_duplicate" {
name = "default_duplicate"
dynamic "tags" {
for_each = local.tags
content {
key = tags.key
value = tags.value
}
}
organization {
moid = local.organization
}
enable_dynamic_dns = false
# ipv4
enable_ipv4dns_from_dhcp = false
preferred_ipv4dns_server = "10.10.10.1"
alternate_ipv4dns_server = "10.10.10.2"
# ipv6
enable_ipv6 = false
enable_ipv6dns_from_dhcp = false
}