Skip to content

Commit 6b7e754

Browse files
committed
chore: (IAC-1196) Updates resolving tflint errors
1 parent 3908a33 commit 6b7e754

File tree

5 files changed

+1
-32
lines changed

5 files changed

+1
-32
lines changed

docs/CONFIG-VARS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ Ubuntu 20.04 LTS is the operating system used on the Jump/NFS servers. Ubuntu cr
191191
| jump_rwx_filestore_path | File store mount point on jump server | string | "/viya-share" | This location cannot include `/mnt` as its root location. This disk is ephemeral on Ubuntu, which is the operating system being used for the jump/NFS servers. |
192192
| tags | Map of common tags to be placed on all Azure resources created by this script | map | { project_name = "sasviya4", environment = "dev" } | |
193193
| aks_identity | Use UserAssignedIdentity or Service Principal as [AKS identity](https://docs.microsoft.com/en-us/azure/aks/concepts-identity) | string | "uai" | A value of `uai` wil create a Managed Identity based on the permissions of the authenticated user or use [`AKS_UAI_NAME`](#use-existing), if set. A value of `sp` will use values from [`CLIENT_ID`/`CLIENT_SECRET`](#azure-authentication), if set. |
194-
| ssh_public_key | File name of public ssh key for jump and nfs VM | string | "~/.ssh/id_rsa.pub" | Required with `create_jump_vm=true` or `storage_type=standard` |
194+
| ssh_public_key | File name of public ssh key for jump and nfs VM | string | null | Required with `create_jump_vm=true` or `storage_type=standard` |
195195
| cluster_api_mode | Public or private IP for the cluster api | string | "public" | Valid Values: "public", "private" |
196196
| aks_cluster_private_dns_zone_id | Specifies private DNS zone resource ID for AKS private cluster to use | string | "" | For `cluster_api_mode=private` if `aks_cluster_private_dns_zone_id` is not specified then the value `System` is used else it is set to null. For details see [Configure a private DNS zone](https://learn.microsoft.com/en-us/azure/aks/private-clusters?tabs=azure-portal#configure-a-private-dns-zone) |
197197
| aks_cluster_sku_tier | Optimizes api server for cost vs availability | string | "Free" | Valid Values: "Free", "Standard" |

locals.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44
locals {
55

66
# Useful flags
7-
# ssh_public_key = (var.create_jump_vm || var.storage_type == "standard"
8-
# ? file(var.ssh_public_key)
9-
# : null
10-
# )
11-
127
ssh_public_key = (var.create_jump_vm || var.storage_type == "standard"
138
? can(file(var.ssh_public_key)) ? file(var.ssh_public_key) : var.ssh_public_key != null ? length(var.ssh_public_key) > 0 ? var.ssh_public_key : null : null
149
: null

modules/azure_aks/variables.tf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ variable "aks_cluster_rg" {
1111
type = string
1212
}
1313

14-
## unused
15-
# variable "aks_cluster_rg_id" {
16-
# description = "The `azurerm_kubernetes_cluster`'s id."
17-
# type = string
18-
# }
19-
2014
variable "aks_cluster_dns_prefix" {
2115
description = "DNS prefix specified when creating the managed cluster."
2216
type = string

modules/azurerm_netapp/variables.tf

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
# Copyright © 2020-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4-
#unused
5-
# variable create_netapp {
6-
# description = "Boolean flag to create Azure NetApp Files"
7-
# type = bool
8-
# default = false
9-
# }
10-
114
variable "prefix" {
125
description = "A prefix used in the name for all the Azure resources created by this script."
136
type = string
@@ -23,12 +16,6 @@ variable "location" {
2316
type = string
2417
}
2518

26-
#unused
27-
# variable "vnet_name" {
28-
# description = "Azure Virtual Network"
29-
# type = string
30-
# }
31-
3219
variable "subnet_id" {
3320
description = "Azure subnet id for Azure NetApp Files"
3421
type = string

modules/azurerm_postgresql_flex/variables.tf

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,3 @@ variable "delegated_subnet_id" {
9898
description = "The ID of the virtual network subnet to create the PostgreSQL Flexible Server. The provided subnet should not have any other resource deployed in it and this subnet will be delegated to the PostgreSQL Flexible Server, if not already delegated. Changing this forces a new PostgreSQL Flexible Server to be created."
9999
type = string
100100
}
101-
102-
#unused
103-
# variable "private_dns_zone_id" {
104-
# description = "The ID of the private DNS zone to create the PostgreSQL Flexible Server. Changing this forces a new PostgreSQL Flexible Server to be created."
105-
# type = string
106-
# default = null
107-
# }

0 commit comments

Comments
 (0)