Skip to content

Commit

Permalink
updating examples and updated snmp module
Browse files Browse the repository at this point in the history
  • Loading branch information
scotttyso committed Dec 2, 2021
1 parent 1ab4678 commit 6f4b944
Show file tree
Hide file tree
Showing 79 changed files with 3,257 additions and 190 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
788 changes: 788 additions & 0 deletions examples/policies_vlan/README.md

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
42 changes: 25 additions & 17 deletions examples/pools/fc_pools.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,63 +13,71 @@ module "wwnn_pool" {
depends_on = [
data.intersight_organization_organization.org_moid
]
version = ">=0.9.6"
source = "terraform-cisco-modules/imm/intersight//modules/fc_pools"
assignment_order = "sequential"
description = "WWNN Pool Example."
name = "wwn_pool"
org_moid = local.org_moid
pool_purpose = "WWNN"
tags = var.tags
id_blocks = [
{
id_blocks = {
"0" = {
from = "20:00:00:25:B5:00:00:00"
to = "20:00:00:25:B5:00:01:ff"
size = 256
# to = "20:00:00:25:B5:00:01:ff"
}
]
}
}

module "wwpn_pool_a" {
depends_on = [
data.intersight_organization_organization.org_moid
]
version = ">=0.9.6"
source = "terraform-cisco-modules/imm/intersight//modules/fc_pools"
assignment_order = "sequential"
description = "WWPN Pool A Example."
name = "wwpn_pool_a"
org_moid = local.org_moid
tags = var.tags
id_blocks = [
{
id_blocks = {
"0" = {
from = "20:00:00:25:B5:0a:00:00"
to = "20:00:00:25:B5:0a:00:ff"
size = 256
# to = "20:00:00:25:B5:0a:00:ff"
},
{
"1" = {
from = "20:00:00:25:B5:0a:01:00"
to = "20:00:00:25:B5:0a:01:ff"
size = 256
# to = "20:00:00:25:B5:0a:01:ff"
}
]
}
}

module "wwpn_pool_b" {
depends_on = [
data.intersight_organization_organization.org_moid
]
version = ">=0.9.6"
source = "terraform-cisco-modules/imm/intersight//modules/fc_pools"
assignment_order = "sequential"
description = "WWPN Pool B Example."
name = "wwpn_pool_b"
org_moid = local.org_moid
tags = var.tags
id_blocks = [
{
id_blocks = {
"0" = {
from = "20:00:00:25:B5:0b:00:00"
to = "20:00:00:25:B5:0b:00:ff"
size = 256
# to = "20:00:00:25:B5:0b:00:ff"
},
{
"1" = {
from = "20:00:00:25:B5:0b:01:00"
to = "20:00:00:25:B5:0b:01:ff"
size = 256
# to = "20:00:00:25:B5:0b:01:ff"
}
]
}
}

#______________________________________________
Expand All @@ -90,7 +98,7 @@ module "wwxn_pool_default" {
org_moid = local.org_moid
pool_purpose = "WWPN"
tags = var.tags
id_blocks = []
id_blocks = {}
}
*/
82 changes: 44 additions & 38 deletions examples/pools/ip_pools.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,43 +13,48 @@ module "ip_pool_1" {
depends_on = [
data.intersight_organization_organization.org_moid
]
version = ">=0.9.6"
source = "terraform-cisco-modules/imm/intersight//modules/ip_pools"
assignment_order = "sequential"
description = "IP Pool 1 Example."
dns_servers_v4 = var.dns_servers_v4
dns_servers_v6 = var.dns_servers_v6
name = "ip_pool_1"
org_moid = local.org_moid
tags = var.tags
ipv4_block = [
{
ipv4_block = {
"0" = {
from = "198.18.1.32"
to = "198.18.1.63"
size = 32
# to = "198.18.1.63"
},
{
"1" = {
from = "198.18.1.64"
to = "198.18.1.95"
size = 32
# to = "198.18.1.95"
}
]
ipv4_config = [
{
gateway = "198.18.1.1"
netmask = "255.255.255.0"
}
ipv4_config = {
"config" = {
gateway = "198.18.1.1"
netmask = "255.255.255.0"
primary_dns = "198.18.1.10"
secondary_dns = "198.18.1.11"
}
]
ipv6_block = [
{
}
ipv6_block = {
"0" = {
from = "2001:002:1::32"
size = 31
size = 32
# to = "2001:002:1::63"
}
]
ipv6_config = [
{
gateway = "2001:002:1::1"
prefix = 64
}
ipv6_config = {
"config" = {
gateway = "2001:002:1::1"
prefix = 64
primary_dns = "2001:002:1::10"
secondary_dns = "2001:002:1::11"
}
]
}
}


Expand All @@ -63,24 +68,27 @@ module "ip_pool_2" {
data.intersight_organization_organization.org_moid
]
source = "terraform-cisco-modules/imm/intersight//modules/ip_pools"
version = ">=0.9.6"
assignment_order = "sequential"
description = "IP Pool 2 Example."
dns_servers_v4 = var.dns_servers_v4
name = "ip_pool_2"
org_moid = local.org_moid
tags = var.tags
ipv4_block = [
{
ipv4_block = {
"0" = {
from = "198.18.2.32"
to = "198.18.2.63"
size = 32
# to = "198.18.2.63"
}
]
ipv4_config = [
{
gateway = "198.18.2.1"
netmask = "255.255.255.0"
}
ipv4_config = {
"config" = {
gateway = "198.18.2.1"
netmask = "255.255.255.0"
primary_dns = "198.18.1.10"
secondary_dns = "198.18.1.11"
}
]
}
}

#______________________________________________
Expand All @@ -97,15 +105,13 @@ module "ip_pool_default" {
source = "terraform-cisco-modules/imm/intersight//modules/ip_pools"
assignment_order = "default"
description = ""
dns_servers_v4 = var.dns_servers_v4
dns_servers_v6 = var.dns_servers_v6
name = "default"
org_moid = local.org_moid
tags = var.tags
ipv4_block = []
ipv4_config = []
ipv6_block = []
ipv6_config = []
ipv4_block = {}
ipv4_config = {}
ipv6_block = {}
ipv6_config = {}
}
*/
3 changes: 2 additions & 1 deletion examples/pools/iqn_pools.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module "iqn_pool" {
depends_on = [
data.intersight_organization_organization.org_moid
]
version = ">=0.9.6"
source = "terraform-cisco-modules/imm/intersight//modules/iqn_pools"
assignment_order = "sequential"
description = "IQN Pool Example."
Expand All @@ -16,7 +17,7 @@ module "iqn_pool" {
tags = var.tags
iqn_suffix_blocks = [
{
from = 01
from = 00
suffix = "ucs-host"
size = 32
# to = 31
Expand Down
11 changes: 8 additions & 3 deletions examples/pools/mac_pools.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ module "mac_pool_a" {
depends_on = [
data.intersight_organization_organization.org_moid
]
version = ">=0.9.6"
source = "terraform-cisco-modules/imm/intersight//modules/mac_pools"
assignment_order = "sequential"
description = "Example A MAC Pool."
Expand All @@ -22,7 +23,8 @@ module "mac_pool_a" {
mac_blocks = [
{
from = "00:25:B5:0a:00:00"
to = "00:25:B5:0a:00:fe"
size = 256
# to = "00:25:B5:0a:00:ff"
}
]
}
Expand All @@ -31,6 +33,7 @@ module "mac_pool_b" {
depends_on = [
data.intersight_organization_organization.org_moid
]
version = ">=0.9.6"
source = "terraform-cisco-modules/imm/intersight//modules/mac_pools"
assignment_order = "sequential"
description = "Example B MAC Pool."
Expand All @@ -40,11 +43,13 @@ module "mac_pool_b" {
mac_blocks = [
{
from = "00:25:B5:0b:00:00"
to = "00:25:B5:0b:00:fe"
size = 256
# to = "00:25:B5:0b:00:ff"
},
{
from = "00:25:B5:0c:00:00"
to = "00:25:B5:0c:00:fe"
size = 256
# to = "00:25:B5:0c:00:ff"
}
]
}
Expand Down
13 changes: 7 additions & 6 deletions examples/pools/uuid_pools.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,21 @@ module "uuid_pool" {
depends_on = [
data.intersight_organization_organization.org_moid
]
# source = "../../modules/uuid_pools"
version = ">=0.9.6"
source = "terraform-cisco-modules/imm/intersight//modules/uuid_pools"
assignment_order = "sequential"
description = "Example UUID Pool."
name = "uuid_pool"
org_moid = local.org_moid
prefix = "000025B5-0000-0000"
tags = var.tags
uuid_suffix_blocks = [
{
uuid_suffix_blocks = {
"0" = {
from = "0000-000000000000"
size = 32768
# to = "0000-000000000032"
size = 1000
# to = "0000-0000000003E7"
}
]
}
}

#______________________________________________
Expand Down
Loading

0 comments on commit 6f4b944

Please sign in to comment.