diff --git a/README.md b/README.md index 895ed28..0968d1e 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ module "fmc" { | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| -| [deploy\_support](#input\_deploy\_support) | Enables support for FTD deployments | `bool` | `true` | no | +| [deploy\_support](#input\_deploy\_support) | Enables support for FTD deployments | `bool` | `true` | no | | [model](#input\_model) | As an alternative to YAML files, a native Terraform data structure can be provided as well. | `map(any)` | `{}` | no | | [write\_default\_values\_file](#input\_write\_default\_values\_file) | Write all default values to a YAML file. Value is a path pointing to the file to be created. | `string` | `""` | no | | [yaml\_directories](#input\_yaml\_directories) | List of paths to YAML directories. | `list(string)` |
[
"data"
]
| no | diff --git a/fmc_deploy.tf b/fmc_deploy.tf index 71942d3..0bed9a4 100755 --- a/fmc_deploy.tf +++ b/fmc_deploy.tf @@ -8,7 +8,7 @@ locals { device = object.name deploy_ignore_warning = try(object.deploy_ignore_warning, local.defaults.fmc.domains.devices.deploy_ignore_warning, null) deploy_force = try(object.deploy_force, local.defaults.fmc.domains.devices.deploy_force, null) - } if try(object.deploy, false) && var.deploy_support + } if try(object.deploy, false) && var.manage_deployment ] ]) } diff --git a/templates/fmc_tpl_deploy.tftpl b/templates/fmc_tpl_deploy.tftpl index 009a16b..7eccd9d 100644 --- a/templates/fmc_tpl_deploy.tftpl +++ b/templates/fmc_tpl_deploy.tftpl @@ -8,7 +8,7 @@ locals { device = object.name deploy_ignore_warning = try(object.deploy_ignore_warning, local.defaults.fmc.domains.devices.deploy_ignore_warning, null) deploy_force = try(object.deploy_force, local.defaults.fmc.domains.devices.deploy_force, null) - } if try(object.deploy, false) && var.deploy_support + } if try(object.deploy, false) && var.manage_deployment ] ]) diff --git a/variables.tf b/variables.tf index d7e1789..574bb78 100644 --- a/variables.tf +++ b/variables.tf @@ -16,7 +16,7 @@ variable "model" { default = {} } -variable "deploy_support" { +variable "manage_deployment" { description = "Enables support for FTD deployments" type = bool default = true