Skip to content

Commit 3937652

Browse files
committed
Added description option to modules.
1 parent 6badaea commit 3937652

File tree

19 files changed

+48
-31
lines changed

19 files changed

+48
-31
lines changed

modules/infra_provider/variables.tf

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,6 @@ variable "description" {
77
default = ""
88
description = "Description to be used to describe the infrastructure provider policy"
99
}
10-
# variable "vc_cluster" {
11-
# type = string
12-
# description = "Name of the cluster you wish to make part of this provider within vCenter."
13-
# }
14-
# variable "vc_portgroup" {
15-
# type = list(string)
16-
# description = "Name of the portgroup(s) to be used in this provider"
17-
# }
18-
# variable "vc_datastore" {
19-
# type = string
20-
# description = "Name of the datastore to be used with this provider."
21-
# }
22-
# variable "vc_password" {
23-
# sensitive = true
24-
# type = string
25-
# description = "Password of the account to be used with vCenter. This should be the password for the account used to register vCenter with Intersight."
26-
# }
27-
# variable "vc_resource_pool" {
28-
# type = string
29-
# description = "Name of the resource pool to be used with this provider."
30-
# default = ""
31-
# }
3210
variable "instance_type_moid" {
3311
type = string
3412
description = "MOID of the Instance type mapped to this provider"

modules/ip_pool/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ No modules.
4747

4848
| Name | Description | Type | Default | Required |
4949
|------|-------------|------|---------|:--------:|
50+
| <a name="input_description"></a> [description](#input\_description) | Description to be used to describe the IP Pool Policy. | `string` | `""` | no |
5051
| <a name="input_gateway"></a> [gateway](#input\_gateway) | Default gateway for this pool. | `string` | n/a | yes |
5152
| <a name="input_name"></a> [name](#input\_name) | Name of the IP Pool to be created. | `string` | n/a | yes |
5253
| <a name="input_netmask"></a> [netmask](#input\_netmask) | Subnet Mask for this pool. | `string` | n/a | yes |

modules/ip_pool/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ data "intersight_organization_organization" "this" {
55

66
# Supports IPV4 today.
77
resource "intersight_ippool_pool" "this" {
8-
name = var.name
8+
name = var.name
9+
description = var.description
910
ip_v4_blocks {
1011
from = var.starting_address
1112
size = var.pool_size

modules/ip_pool/variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ variable "org_name" {
22
type = string
33
description = "Intersight Organization name"
44
}
5+
variable "description" {
6+
type = string
7+
default = ""
8+
description = "Description to be used to describe the IP Pool Policy."
9+
}
510
variable "name" {
611
type = string
712
description = "Name of the IP Pool to be created."

modules/k8s_network/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ No modules.
5151
| Name | Description | Type | Default | Required |
5252
|------|-------------|------|---------|:--------:|
5353
| <a name="input_cni"></a> [cni](#input\_cni) | Supported CNI type. Currently we only support Calico.* Calico - Calico CNI plugin as described in https://github.com/projectcalico/cni-plugin. | `string` | `"Calico"` | no |
54+
| <a name="input_description"></a> [description](#input\_description) | Description to be used to describe the k8s network profile. | `string` | `""` | no |
5455
| <a name="input_org_name"></a> [org\_name](#input\_org\_name) | Intersight Organization name | `string` | n/a | yes |
5556
| <a name="input_pod_cidr"></a> [pod\_cidr](#input\_pod\_cidr) | Pod CIDR Block to be used to assign POD IP Addresses. | `string` | `"100.65.0.0/16"` | no |
5657
| <a name="input_policy_name"></a> [policy\_name](#input\_policy\_name) | Name of the policy. `_Network` and `_pod` will be added to the end of the name for the respective policies to be built. | `string` | n/a | yes |

modules/k8s_network/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ resource "intersight_kubernetes_network_policy" "this" {
66

77

88
name = var.policy_name
9+
description = var.description
910
pod_network_cidr = var.pod_cidr
1011
service_cidr = var.service_cidr
1112
cni_type = var.cni

modules/k8s_network/variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ variable "org_name" {
22
type = string
33
description = "Intersight Organization name"
44
}
5+
variable "description" {
6+
type = string
7+
default = ""
8+
description = "Description to be used to describe the k8s network profile."
9+
}
510
variable "policy_name" {
611
type = string
712
description = "Name of the policy. `_Network` and `_pod` will be added to the end of the name for the respective policies to be built."

modules/k8s_sysconfig/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ No modules.
4949

5050
| Name | Description | Type | Default | Required |
5151
|------|-------------|------|---------|:--------:|
52+
| <a name="input_description"></a> [description](#input\_description) | Description to be used to describe the K8s sysconfig profile. | `string` | `""` | no |
5253
| <a name="input_dns_servers"></a> [dns\_servers](#input\_dns\_servers) | DNS Servers to be included in the Network Policy. | `list(string)` | n/a | yes |
5354
| <a name="input_domain_name"></a> [domain\_name](#input\_domain\_name) | Domain Name information for DNS search. | `string` | n/a | yes |
5455
| <a name="input_ntp_servers"></a> [ntp\_servers](#input\_ntp\_servers) | NTP Servers to be included in the Network Policy. | `list(string)` | n/a | yes |

modules/k8s_sysconfig/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ data "intersight_organization_organization" "this" {
55
resource "intersight_kubernetes_sys_config_policy" "this" {
66

77
name = var.policy_name
8+
description = var.description
89
dns_servers = var.dns_servers
910
ntp_servers = var.ntp_servers
1011
timezone = var.timezone

modules/k8s_sysconfig/variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ variable "org_name" {
22
type = string
33
description = "Intersight Organization name"
44
}
5+
variable "description" {
6+
type = string
7+
default = ""
8+
description = "Description to be used to describe the K8s sysconfig profile."
9+
}
510
variable "policy_name" {
611
type = string
712
description = "Name of the policy. `_Network` and `_pod` will be added to the end of the name for the respective policies to be built."

0 commit comments

Comments
 (0)