https://github.com/terraform-cisco-modules/terraform-intersight-policy-bundle
Terraform module that creates many sample policies for Intersight
https://github.com/terraform-cisco-modules/terraform-intersight-policy-bundle
Last synced: about 1 month ago
JSON representation
Terraform module that creates many sample policies for Intersight
- Host: GitHub
- URL: https://github.com/terraform-cisco-modules/terraform-intersight-policy-bundle
- Owner: terraform-cisco-modules
- Created: 2021-06-09T21:20:31.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-07T02:24:18.000Z (almost 3 years ago)
- Last Synced: 2025-03-28T13:15:37.568Z (about 2 months ago)
- Language: HCL
- Size: 33.2 KB
- Stars: 1
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Create Intersight Policies Module
This module simplifies the creation of basic server and domain policies in the specified Intersight organization. It takes a few inputs and creates more than 20 policies with common settings. It also creates a server profile template and UCS domain profile that use several of those policies. Objects are created with a consistent naming scheme and any tags specified.
This module is intended to give users a jump-start into creating their own policies but will not represent the exact policy that every user will want. The policies can be updated manually or just used a reference to create new policies.
### Caution
This module creates policy, a server profile template, and a UCS domain profile. When attempting a `terraform destroy`, Terraform is unable to remove the policies that are used by two Fabric Interconnects in the UCS domain profile. You will have to edit the domain profile manually and detatch the following policies from from the fabric interconnects:
- VLAN policy
- VSAN policy
- Port policySee [examples](./examples/) for more details.
## Requirements
| Name | Version |
|------|---------|
| [intersight](#requirement\_intersight) | >=1.0.28 |## Providers
| Name | Version |
|------|---------|
| [intersight](#provider\_intersight) | >=1.0.28 |## Modules
No modules.
## Resources
| Name | Type |
|------|------|
| [intersight_access_policy.access1](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/access_policy) | resource |
| [intersight_boot_precision_policy.boot_precision1](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/boot_precision_policy) | resource |
| [intersight_deviceconnector_policy.dc1](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/deviceconnector_policy) | resource |
| [intersight_fabric_eth_network_control_policy.fabric_eth_network_control_policy1](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/fabric_eth_network_control_policy) | resource |
| [intersight_fabric_eth_network_group_policy.fabric_eth_network_group_policy1](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/fabric_eth_network_group_policy) | resource |
| [intersight_fabric_eth_network_policy.fabric_eth_network_policy1](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/fabric_eth_network_policy) | resource |
| [intersight_fabric_multicast_policy.fabric_multicast_policy1](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/fabric_multicast_policy) | resource |
| [intersight_fabric_port_mode.fabric_port_mode1](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/fabric_port_mode) | resource |
| [intersight_fabric_port_policy.fabric_port_policy1](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/fabric_port_policy) | resource |
| [intersight_fabric_server_role.fabric_server_role1](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/fabric_server_role) | resource |
| [intersight_fabric_system_qos_policy.qos1](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/fabric_system_qos_policy) | resource |
| [intersight_fabric_uplink_pc_role.fabric_uplink_pc_role1](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/fabric_uplink_pc_role) | resource |
| [intersight_fabric_vlan.fabric_vlan1](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/fabric_vlan) | resource |
| [intersight_iam_end_point_user.iam_end_point_user1](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/iam_end_point_user) | resource |
| [intersight_iam_end_point_user_policy.user_policy1](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/iam_end_point_user_policy) | resource |
| [intersight_iam_end_point_user_role.roleadmin](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/iam_end_point_user_role) | resource |
| [intersight_iam_ldap_group.group1](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/iam_ldap_group) | resource |
| [intersight_iam_ldap_group.group2](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/iam_ldap_group) | resource |
| [intersight_iam_ldap_group.group3](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/iam_ldap_group) | resource |
| [intersight_iam_ldap_policy.policy1](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/iam_ldap_policy) | resource |
| [intersight_iam_ldap_provider.provider1](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/iam_ldap_provider) | resource |
| [intersight_iam_ldap_provider.provider2](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/iam_ldap_provider) | resource |
| [intersight_ipmioverlan_policy.ipmi2](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/ipmioverlan_policy) | resource |
| [intersight_kvm_policy.kvmpolicy1](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/kvm_policy) | resource |
| [intersight_networkconfig_policy.connectivity1](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/networkconfig_policy) | resource |
| [intersight_ntp_policy.ntp1](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/ntp_policy) | resource |
| [intersight_power_policy.chassis](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/power_policy) | resource |
| [intersight_power_policy.server](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/power_policy) | resource |
| [intersight_sdcard_policy.sdcard1](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/sdcard_policy) | resource |
| [intersight_snmp_policy.snmp_disabled](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/snmp_policy) | resource |
| [intersight_sol_policy.sol1](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/sol_policy) | resource |
| [intersight_sol_policy.sol2112](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/sol_policy) | resource |
| [intersight_storage_drive_group.group1](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/storage_drive_group) | resource |
| [intersight_storage_storage_policy.storage1](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/storage_storage_policy) | resource |
| [intersight_thermal_policy.thermal1](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/thermal_policy) | resource |
| [intersight_vmedia_policy.vmedia1](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/vmedia_policy) | resource |
| [intersight_vmedia_policy.vmedia2](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/vmedia_policy) | resource |
| [intersight_vnic_eth_adapter_policy.v_eth_adapter1](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/vnic_eth_adapter_policy) | resource |
| [intersight_vnic_eth_if.eth0](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/vnic_eth_if) | resource |
| [intersight_vnic_eth_if.eth1](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/vnic_eth_if) | resource |
| [intersight_vnic_eth_qos_policy.v_eth_qos1](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/vnic_eth_qos_policy) | resource |
| [intersight_vnic_lan_connectivity_policy.vnic_lan1](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/vnic_lan_connectivity_policy) | resource |
| [intersight_iam_end_point_role.admin_role](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/data-sources/iam_end_point_role) | data source |
| [intersight_iam_end_point_role.imc_admin](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/data-sources/iam_end_point_role) | data source |
| [intersight_iam_end_point_role.imc_readonly](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/data-sources/iam_end_point_role) | data source |
| [intersight_iam_end_point_role.imc_user](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/data-sources/iam_end_point_role) | data source |## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [description](#input\_description) | description field for all policies | `string` | `""` | no |
| [dns\_alternate](#input\_dns\_alternate) | IP address of secondary (alternate) DNS server | `string` | `""` | no |
| [dns\_preferred](#input\_dns\_preferred) | IP address of primary (preferred) DNS server | `string` | n/a | yes |
| [fc\_port\_count\_6454](#input\_fc\_port\_count\_6454) | number of ports to assign to FC starting at port 1 | `number` | `0` | no |
| [imc\_access\_pool](#input\_imc\_access\_pool) | moid of IP pool for IMC access | `string` | n/a | yes |
| [imc\_access\_vlan](#input\_imc\_access\_vlan) | ID of VLAN for IMC access | `number` | n/a | yes |
| [imc\_admin\_password](#input\_imc\_admin\_password) | password for the local user policy for IMC | `string` | `"Cha@ng3Me"` | no |
| [ntp\_servers](#input\_ntp\_servers) | list of NTP servers | `list(string)` | n/a | yes |
| [ntp\_timezone](#input\_ntp\_timezone) | valid timezone as documented at https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/ntp_policy | `string` | `"America/Chicago"` | no |
| [organization](#input\_organization) | moid for organization in which to create the policies | `string` | n/a | yes |
| [policy\_prefix](#input\_policy\_prefix) | prefix for all policies created | `string` | `"tf"` | no |
| [port\_channel\_6454](#input\_port\_channel\_6454) | list of port numbers to be assigned to uplink port channel | `set(string)` | n/a | yes |
| [server\_ports\_6454](#input\_server\_ports\_6454) | list of port numbers to be assigned to server ports | `set(string)` | n/a | yes |
| [tags](#input\_tags) | user tags to be applied to all policies | `list(map(string))` | `[]` | no |
| [uplink\_vlans\_6454](#input\_uplink\_vlans\_6454) | map of vlan names and IDs to be used on FI uplinks | `map(number)` | n/a | yes |
| [vnic\_mac\_pool](#input\_vnic\_mac\_pool) | moid of MAC pool for use with vnics | `string` | n/a | yes |
| [vnic\_native\_vlan](#input\_vnic\_native\_vlan) | native VLAN for vnic profiles | `number` | `1` | no |## Outputs
No outputs.