Skip to content

Commit

Permalink
Azure TF | Updated computer_name to be in lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
chkp-yairra authored Aug 27, 2024
1 parent 5f4b953 commit a571dd9
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
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

0 comments on commit a571dd9

Please sign in to comment.