Skip to content

Commit

Permalink
Unique VM hostname
Browse files Browse the repository at this point in the history
fixes #45
  • Loading branch information
horsey authored and dtzar committed Jan 20, 2018
1 parent 162c85b commit a8a6640
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ resource "azurerm_virtual_machine" "vm-linux" {
}

os_profile {
computer_name = "${var.vm_hostname}"
computer_name = "${var.vm_hostname}${count.index}"
admin_username = "${var.admin_username}"
admin_password = "${var.admin_password}"
}
Expand Down Expand Up @@ -117,7 +117,7 @@ resource "azurerm_virtual_machine" "vm-linux-with-datadisk" {
}

os_profile {
computer_name = "${var.vm_hostname}"
computer_name = "${var.vm_hostname}${count.index}"
admin_username = "${var.admin_username}"
admin_password = "${var.admin_password}"
}
Expand Down Expand Up @@ -165,7 +165,7 @@ resource "azurerm_virtual_machine" "vm-windows" {
}

os_profile {
computer_name = "${var.vm_hostname}"
computer_name = "${var.vm_hostname}${count.index}"
admin_username = "${var.admin_username}"
admin_password = "${var.admin_password}"
}
Expand Down Expand Up @@ -214,7 +214,7 @@ resource "azurerm_virtual_machine" "vm-windows-with-datadisk" {
}

os_profile {
computer_name = "${var.vm_hostname}"
computer_name = "${var.vm_hostname}${count.index}"
admin_username = "${var.admin_username}"
admin_password = "${var.admin_password}"
}
Expand Down

0 comments on commit a8a6640

Please sign in to comment.