generated from miljodir/terraform-azurerm-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
21 lines (18 loc) · 852 Bytes
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
output "admin_ssh_key_public" {
description = "The generated public key data in PEM format"
value = var.generate_admin_ssh_key == true && var.os_flavor == "linux" ? tls_private_key.rsa[0].public_key_openssh : null
}
output "admin_ssh_key_private" {
description = "The generated private key data in PEM format"
sensitive = true
value = var.generate_admin_ssh_key == true && var.os_flavor == "linux" ? tls_private_key.rsa[0].private_key_pem : null
}
output "windows_vm_password" {
description = "Password for the windows VM"
sensitive = true
value = try(random_password.passwd[0].result, var.admin_password)
}
output "virtual_machine" {
description = "The Virtual Machine object"
value = var.os_flavor == "linux" ? azurerm_linux_virtual_machine.linux_vm[0] : azurerm_windows_virtual_machine.win_vm[0]
}