Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure TF | Updated computer_name to lowercase #402

Merged
merged 1 commit into from
Aug 27, 2024
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
4 changes: 2 additions & 2 deletions terraform/azure/high-availability-existing-vnet/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ resource "azurerm_virtual_machine" "vm-instance-availability-set" {
}

os_profile {
computer_name = "${var.cluster_name}${count.index+1}"
computer_name = "${lower(var.cluster_name)}${count.index+1}"
admin_username = module.common.admin_username
admin_password = module.common.admin_password
custom_data = templatefile("${path.module}/cloud-init.sh", {
Expand Down Expand Up @@ -454,7 +454,7 @@ resource "azurerm_virtual_machine" "vm-instance-availability-zone" {
}

os_profile {
computer_name = "${var.cluster_name}${count.index+1}"
computer_name = "${lower(var.cluster_name)}${count.index+1}"
admin_username = module.common.admin_username
admin_password = module.common.admin_password
custom_data = templatefile("${path.module}/cloud-init.sh", {
Expand Down
4 changes: 2 additions & 2 deletions terraform/azure/high-availability-new-vnet/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ resource "azurerm_virtual_machine" "vm-instance-availability-set" {
}

os_profile {
computer_name = "${var.cluster_name}${count.index+1}"
computer_name = "${lower(var.cluster_name)}${count.index+1}"
admin_username = module.common.admin_username
admin_password = module.common.admin_password
custom_data = templatefile("${path.module}/cloud-init.sh", {
Expand Down Expand Up @@ -473,7 +473,7 @@ resource "azurerm_virtual_machine" "vm-instance-availability-zone" {
}

os_profile {
computer_name = "${var.cluster_name}${count.index+1}"
computer_name = "${lower(var.cluster_name)}${count.index+1}"
admin_username = module.common.admin_username
admin_password = module.common.admin_password
custom_data = templatefile("${path.module}/cloud-init.sh", {
Expand Down
2 changes: 1 addition & 1 deletion terraform/azure/management-existing-vnet/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ resource "azurerm_virtual_machine" "mgmt-vm-instance" {
}

os_profile {
computer_name = var.mgmt_name
computer_name = lower(var.mgmt_name)
admin_username = module.common.admin_username
admin_password = module.common.admin_password
custom_data = templatefile("${path.module}/cloud-init.sh", {
Expand Down
2 changes: 1 addition & 1 deletion terraform/azure/management-new-vnet/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ resource "azurerm_virtual_machine" "mgmt-vm-instance" {
}

os_profile {
computer_name = var.mgmt_name
computer_name = lower(var.mgmt_name)
admin_username = module.common.admin_username
admin_password = module.common.admin_password
custom_data = templatefile("${path.module}/cloud-init.sh", {
Expand Down
2 changes: 1 addition & 1 deletion terraform/azure/mds-existing-vnet/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ resource "azurerm_virtual_machine" "mds-vm-instance" {
}

os_profile {
computer_name = var.mds_name
computer_name = lower(var.mds_name)
admin_username = module.common.admin_username
admin_password = module.common.admin_password
custom_data = templatefile("${path.module}/cloud-init.sh", {
Expand Down
2 changes: 1 addition & 1 deletion terraform/azure/mds-new-vnet/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ resource "azurerm_virtual_machine" "mds-vm-instance" {
}

os_profile {
computer_name = var.mds_name
computer_name = lower(var.mds_name)
admin_username = module.common.admin_username
admin_password = module.common.admin_password
custom_data = templatefile("${path.module}/cloud-init.sh", {
Expand Down
2 changes: 1 addition & 1 deletion terraform/azure/single-gateway-existing-vnet/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ resource "azurerm_virtual_machine" "single-gateway-vm-instance" {
}

os_profile {
computer_name = var.single_gateway_name
computer_name = lower(var.single_gateway_name)
admin_username = module.common.admin_username
admin_password = module.common.admin_password
custom_data = templatefile("${path.module}/cloud-init.sh", {
Expand Down
2 changes: 1 addition & 1 deletion terraform/azure/single-gateway-new-vnet/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ resource "azurerm_virtual_machine" "single-gateway-vm-instance" {
}

os_profile {
computer_name = var.single_gateway_name
computer_name = lower(var.single_gateway_name)
admin_username = module.common.admin_username
admin_password = module.common.admin_password
custom_data = templatefile("${path.module}/cloud-init.sh", {
Expand Down
2 changes: 1 addition & 1 deletion terraform/azure/vmss-existing-vnet/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ resource "azurerm_linux_virtual_machine_scale_set" "vmss" {
}
}

computer_name_prefix = var.vmss_name
computer_name_prefix = lower(var.vmss_name)
admin_username = module.common.admin_username
admin_password = module.common.admin_password
custom_data = base64encode(templatefile("${path.module}/cloud-init.sh", {
Expand Down
2 changes: 1 addition & 1 deletion terraform/azure/vmss-new-vnet/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ resource "azurerm_linux_virtual_machine_scale_set" "vmss" {
}
}

computer_name_prefix = var.vmss_name
computer_name_prefix = lower(var.vmss_name)
admin_username = module.common.admin_username
admin_password = module.common.admin_password
custom_data = base64encode(templatefile("${path.module}/cloud-init.sh", {
Expand Down
Loading