Skip to content

Commit

Permalink
fix: missing slz fsi input (#63)
Browse files Browse the repository at this point in the history
* fix: missing slz fsi input

* linting
  • Loading branch information
jaredfholgate authored Jan 7, 2025
1 parent e848f90 commit 34121c3
Show file tree
Hide file tree
Showing 12 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion alz/azuredevops/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -127,5 +127,5 @@ locals {

locals {
architecture_definition_name = var.architecture_definition_name
has_architecture_definition = var.architecture_definition_name != null
has_architecture_definition = var.architecture_definition_name != null && var.architecture_definition_name != ""
}
12 changes: 6 additions & 6 deletions alz/azuredevops/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ module "architecture_definition" {
}

module "files" {
source = "../../modules/files"
starter_module_folder_path = local.starter_module_folder_path
additional_files = concat(var.additional_files)
configuration_file_path = var.configuration_file_path
built_in_configurartion_file_names = var.built_in_configurartion_file_names
additional_folders_path = var.additional_folders_path
source = "../../modules/files"
starter_module_folder_path = local.starter_module_folder_path
additional_files = concat(var.additional_files)
configuration_file_path = var.configuration_file_path
built_in_configuration_file_names = var.built_in_configuration_file_names
additional_folders_path = var.additional_folders_path
}

module "azure" {
Expand Down
2 changes: 1 addition & 1 deletion alz/azuredevops/variables.hidden.tf
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ variable "agent_container_zone_support" {
default = true
}

variable "built_in_configurartion_file_names" {
variable "built_in_configuration_file_names" {
description = "Built-in configuration file name"
type = list(string)
default = ["config.yaml", "config-hub-and-spoke-vnet.yaml", "config-virtual-wan.yaml"]
Expand Down
2 changes: 1 addition & 1 deletion alz/github/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,5 @@ locals {

locals {
architecture_definition_name = var.architecture_definition_name
has_architecture_definition = var.architecture_definition_name != null
has_architecture_definition = var.architecture_definition_name != null && var.architecture_definition_name != ""
}
12 changes: 6 additions & 6 deletions alz/github/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ module "architecture_definition" {
}

module "files" {
source = "../../modules/files"
starter_module_folder_path = local.starter_module_folder_path
additional_files = var.additional_files
configuration_file_path = var.configuration_file_path
built_in_configurartion_file_names = var.built_in_configurartion_file_names
additional_folders_path = var.additional_folders_path
source = "../../modules/files"
starter_module_folder_path = local.starter_module_folder_path
additional_files = var.additional_files
configuration_file_path = var.configuration_file_path
built_in_configuration_file_names = var.built_in_configuration_file_names
additional_folders_path = var.additional_folders_path
}

module "azure" {
Expand Down
2 changes: 1 addition & 1 deletion alz/github/variables.hidden.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
variable "built_in_configurartion_file_names" {
variable "built_in_configuration_file_names" {
description = "Built-in configuration file name"
type = list(string)
default = ["config.yaml", "config-hub-and-spoke-vnet.yaml", "config-virtual-wan.yaml"]
Expand Down
4 changes: 2 additions & 2 deletions alz/local/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ locals {

locals {
architecture_definition_name = var.architecture_definition_name
has_architecture_definition = var.architecture_definition_name != null
architecture_definition_file_destination = var.architecture_definition_name != null ? "${local.target_directory}/${var.root_module_folder_relative_path}/lib/architecture_definitions/${local.architecture_definition_name}.alz_architecture_definition.json" : ""
has_architecture_definition = var.architecture_definition_name != null && var.architecture_definition_name != ""
architecture_definition_file_destination = var.architecture_definition_name != null && var.architecture_definition_name != "" ? "${local.target_directory}/${var.root_module_folder_relative_path}/lib/architecture_definitions/${local.architecture_definition_name}.alz_architecture_definition.json" : ""
}
12 changes: 6 additions & 6 deletions alz/local/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ resource "local_file" "architecture_definition_file" {
}

module "files" {
source = "../../modules/files"
starter_module_folder_path = local.starter_module_folder_path
additional_files = var.additional_files
configuration_file_path = var.configuration_file_path
built_in_configurartion_file_names = var.built_in_configurartion_file_names
additional_folders_path = var.additional_folders_path
source = "../../modules/files"
starter_module_folder_path = local.starter_module_folder_path
additional_files = var.additional_files
configuration_file_path = var.configuration_file_path
built_in_configuration_file_names = var.built_in_configuration_file_names
additional_folders_path = var.additional_folders_path
}

module "azure" {
Expand Down
2 changes: 1 addition & 1 deletion alz/local/variables.hidden.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ variable "additional_folders_path" {
default = []
}

variable "built_in_configurartion_file_names" {
variable "built_in_configuration_file_names" {
description = "Built-in configuration file name"
type = list(string)
default = ["config.yaml", "config-hub-and-spoke-vnet.yaml", "config-virtual-wan.yaml"]
Expand Down
2 changes: 1 addition & 1 deletion modules/files/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ locals {
locals {
starter_module_files = { for file in fileset(var.starter_module_folder_path, "**") : file => {
path = "${var.starter_module_folder_path}/${file}"
} if(!local.has_configuration_file || !contains(var.built_in_configurartion_file_names, file)) && !strcontains(file, var.starter_module_folder_path_exclusion)
} if(!local.has_configuration_file || !contains(var.built_in_configuration_file_names, file)) && !strcontains(file, var.starter_module_folder_path_exclusion)
}

additional_folders_files = length(var.additional_folders_path) != 0 ? merge(
Expand Down
2 changes: 1 addition & 1 deletion modules/files/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ variable "configuration_file_path" {
default = ""
}

variable "built_in_configurartion_file_names" {
variable "built_in_configuration_file_names" {
description = "Built-in configuration file name"
type = list(string)
default = ["config.yaml", "config-hub-and-spoke-vnet.yaml", "config-virtual-wan.yaml"]
Expand Down
6 changes: 3 additions & 3 deletions modules/template_architecture_definition/locals.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
locals {
# Determine template architecture definition inputs from starter module tfvars
starter_module_tfvars = jsondecode(file("${var.starter_module_folder_path}/terraform.tfvars.json"))
default_prefix = local.starter_module_tfvars.default_prefix
default_postfix = local.starter_module_tfvars.default_postfix
top_level_management_group_name = local.starter_module_tfvars.top_level_management_group_name
default_prefix = try(local.starter_module_tfvars.default_prefix, "alz")
default_postfix = try(local.starter_module_tfvars.default_postfix, "")
top_level_management_group_name = try(local.starter_module_tfvars.top_level_management_group_name, "alz")
default_template_file_path = "${path.module}/templates/${var.architecture_definition_name}.alz_architecture_definition.json.tftpl"
template_file_path = var.architecture_definition_template_path != "" ? var.architecture_definition_template_path : local.default_template_file_path

Expand Down

0 comments on commit 34121c3

Please sign in to comment.