Skip to content

Commit

Permalink
move variables to model/sensitive map
Browse files Browse the repository at this point in the history
  • Loading branch information
scotttyso committed Aug 7, 2023
1 parent 13f6b7e commit 72fb63c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 38 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
repos:
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.50.0
rev: v1.81.0
hooks:
- id: terraform_fmt
- id: terraform_tflint
Expand Down
2 changes: 1 addition & 1 deletion .terraform-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ content: |-
### A comprehensive example using this module is available below:
## [Easy ACI](https://github.com/terraform-cisco-modules/easy-aci-complete)
## [Easy ACI](https://github.com/terraform-cisco-modules/easy-aci)
{{ .Requirements }}
{{ .Providers }}
Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A Terraform module to configure ACI Switch Configuration.

### A comprehensive example using this module is available below:

## [Easy ACI](https://github.com/terraform-cisco-modules/easy-aci-complete)
## [Easy ACI](https://github.com/terraform-cisco-modules/easy-aci)

## Requirements

Expand All @@ -22,14 +22,12 @@ A Terraform module to configure ACI Switch Configuration.

| Name | Version |
|------|---------|
| <a name="provider_aci"></a> [aci](#provider\_aci) | >= 2.9.0 |
| <a name="provider_aci"></a> [aci](#provider\_aci) | 2.10.1 |
## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_switch"></a> [switch](#input\_switch) | Switch Model data. | `any` | n/a | yes |
| <a name="input_annotations"></a> [annotations](#input\_annotations) | The Version of this Script. | <pre>list(object(<br> {<br> key = string<br> value = string<br> }<br> ))</pre> | <pre>[<br> {<br> "key": "orchestrator",<br> "value": "terraform:easy-aci:v2.0"<br> }<br>]</pre> | no |
| <a name="input_apic_version"></a> [apic\_version](#input\_apic\_version) | The Version of ACI Running in the Environment. | `string` | `"5.2(4e)"` | no |
## Outputs

| Name | Description |
Expand Down
6 changes: 3 additions & 3 deletions defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ defaults:
policy_group_type: access
sub_port: false
monitoring_policy: default
name: '**REQUIRED**'
node_id: '**REQUIRED**'
name: ''
node_id: ''
node_type: leaf
ooband_addressing:
ipv4_address: 198.18.2.101/24
Expand All @@ -48,7 +48,7 @@ defaults:
policy_group: default
pod_id: 1
role: unspecified
serial_number: '**REQUIRED**'
serial_number: ''
two_slot_leaf: false
vpc_domains:
domain_id: null # REQUIRED ID Between 1-1000
Expand Down
29 changes: 0 additions & 29 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,3 @@ variable "switch" {
description = "Switch Model data."
type = any
}

/*_____________________________________________________________________________________________________________________
Global Shared Variables
_______________________________________________________________________________________________________________________
*/


variable "annotations" {
default = [
{
key = "orchestrator"
value = "terraform:easy-aci:v2.0"
}
]
description = "The Version of this Script."
type = list(object(
{
key = string
value = string
}
))
}

variable "apic_version" {
default = "5.2(4e)"
description = "The Version of ACI Running in the Environment."
type = string
}

0 comments on commit 72fb63c

Please sign in to comment.