Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/management/cloud-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
installationType="${installation_type}"
allowUploadDownload="${allow_upload_download}"
osVersion="${os_version}"
templateName="${module_name}"
templateName="${template_name}"
templateVersion="${module_version}"
templateType="${template_type}"
isBlink="${is_blink}"
Expand Down
1 change: 1 addition & 0 deletions modules/management/locals.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
locals {
module_name = "management_terraform_registry"
module_version = "1.0.9"
template_name = var.enable_ipv6 ? "management_terraform_registry_dual_stack" : "management_terraform_registry"

// Calculate IPv6 NIC address - use vnet module output for consistency with IPv4
nic_ipv6_address = var.enable_ipv6 ? cidrhost(module.vnet.subnet_ipv6_prefixes[0], 10) : null
Expand Down
2 changes: 1 addition & 1 deletion modules/management/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ resource "azurerm_virtual_machine" "mgmt_vm_instance" {
installation_type = module.common.installation_type
allow_upload_download = module.common.allow_upload_download
os_version = module.common.os_version
module_name = module.common.module_name
template_name = local.template_name
module_version = module.common.module_version
template_type = "terraform"
is_blink = module.common.is_blink
Expand Down
2 changes: 1 addition & 1 deletion modules/single-gateway/cloud-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
installationType="${installation_type}"
allowUploadDownload="${allow_upload_download}"
osVersion="${os_version}"
templateName="${module_name}"
templateName="${template_name}"
templateVersion="${module_version}"
templateType="${template_type}"
isBlink="${is_blink}"
Expand Down
1 change: 1 addition & 0 deletions modules/single-gateway/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ locals {
module_version = "1.0.9"
vm_os_sku = var.installation_type == "standalone" ? "mgmt-byol" : var.vm_os_sku
is_blink = var.installation_type == "gateway"
template_name = var.enable_ipv6 ? "single_terraform_registry_dual_stack" : "single_terraform_registry"
}
2 changes: 1 addition & 1 deletion modules/single-gateway/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ resource "azurerm_virtual_machine" "single_gateway_vm_instance" {
installation_type = module.common.installation_type
allow_upload_download = module.common.allow_upload_download
os_version = module.common.os_version
module_name = module.common.module_name
template_name = local.template_name
module_version = module.common.module_version
template_type = "terraform"
is_blink = local.is_blink
Expand Down
Loading