File tree Expand file tree Collapse file tree 2 files changed +38
-12
lines changed
examples/infra_config_policy Expand file tree Collapse file tree 2 files changed +38
-12
lines changed Original file line number Diff line number Diff line change @@ -18,23 +18,48 @@ $ terraform apply
1818main.tf
1919```
2020provider "intersight" {
21- apikey = var.api_key
21+ apikey = var.apikey
2222 secretkey = var.secretkey
2323 endpoint = var.endpoint
2424}
2525
26- module "prod_vcenter" {
27- source = "terraform-cisco-modules/iks/intersight//modules/infra_config_policy"
28- name = "wakanda_vc"
29- device_name = "wakanda-vcenter.rich.ciscolabs.com"
30- vc_portgroup = ["panther|iks|tme"]
31- vc_datastore = "iks"
32- vc_cluster = "tchalla"
33- vc_resource_pool = ""
34- vc_password = var.vc_password
35- org_name = var.organization
36- tags = var.tags
26+ #Policy Example for IWE
27+ module "iwe" {
28+ source = "terraform-cisco-modules/iks/intersight//modules/infra_config_policy"
29+ version = "2.0.4"
30+ vmConfig = {
31+ platformType = "iwe"
32+ targetName = "falcon"
33+ policyName = "iwe-test"
34+ description = "Test Policy"
35+ interfaces = ["iwe-guests"]
36+ }
37+
38+ org_name = var.organization
39+ tags = var.tags
3740}
41+ #Policy Example for Vcenter
42+ module "vcenter" {
43+ source = "terraform-cisco-modules/iks/intersight//modules/infra_config_policy"
44+ version = "2.0.4"
45+ vmConfig = {
46+ platformType = "esxi"
47+ targetName = "marvel-vcsa.rich.ciscolabs.com"
48+ policyName = "esxi-test"
49+ description = "Test Policy"
50+ interfaces = ["iwe-guests"]
51+ vcClusterName = "test"
52+ vcDatastoreName = "test"
53+ vcPassword = "12345"
54+ vcResourcePoolName = ""
55+ }
56+
57+ org_name = var.organization
58+ tags = var.tags
59+ }
60+
61+
62+
3863```
3964
4065
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ data "intersight_kubernetes_virtual_machine_instance_type" "this" {
3232 count = var. instance_type . use_existing == true ? 1 : 0
3333 name = var. instance_type . name
3434}
35+
3536module "infra_config_policy" {
3637 source = " terraform-cisco-modules/iks/intersight//modules/infra_config_policy"
3738 version = " >=2.0.3"
You can’t perform that action at this time.
0 commit comments