moved outputs to outputs.tf; added sshCommand

This commit is contained in:
Scott Nowicki 2017-04-19 18:20:56 -05:00
parent 048ab5a774
commit d0973b77c1
2 changed files with 11 additions and 8 deletions

View File

@ -110,11 +110,3 @@ resource "azurerm_virtual_machine" "vm" {
storage_uri = "${azurerm_storage_account.stor.primary_blob_endpoint}"
}
}
output "hostname" {
value = "${var.hostname}"
}
output "vm_fqdn" {
value = "${azurerm_public_ip.pip.fqdn}"
}

View File

@ -0,0 +1,11 @@
output "hostname" {
value = "${var.hostname}"
}
output "vm_fqdn" {
value = "${azurerm_public_ip.pip.fqdn}"
}
output "sshCommand" {
value = "${concat('ssh ', var.admin_username, '@', azurerm_public_ip.pip.fqdn)}"
}