Skip to content

Commit

Permalink
remove admin_username for real this time
Browse files Browse the repository at this point in the history
Signed-off-by: Connor Braa <connor.braa@gmail.com>
  • Loading branch information
rowanjacobs authored and cwlbraa committed Mar 23, 2018
1 parent e54f3a9 commit e448775
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ops_manager.tf
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ resource "azurerm_virtual_machine" "ops_manager_vm" {
disable_password_authentication = true

ssh_keys {
path = "/home/${var.vm_admin_username}/.ssh/authorized_keys"
path = "/home/ubuntu/.ssh/authorized_keys"
key_data = "${tls_private_key.ops_manager.public_key_openssh}"
}
}
Expand All @@ -101,14 +101,14 @@ resource "azurerm_virtual_machine" "optional_ops_manager_vm" {

os_profile {
computer_name = "${var.env_name}-optional-ops-manager"
admin_username = "${var.vm_admin_username}"
admin_username = "ubuntu"
}

os_profile_linux_config {
disable_password_authentication = true

ssh_keys {
path = "/home/${var.vm_admin_username}/.ssh/authorized_keys"
path = "/home/ubuntu/.ssh/authorized_keys"
key_data = "${tls_private_key.ops_manager.public_key_openssh}"
}
}
Expand Down

0 comments on commit e448775

Please sign in to comment.