add option to specify hypervisor host

This commit is contained in:
Pim Kunis 2023-05-04 10:44:11 +02:00
parent 4c29372a1c
commit 89d7ad537f
2 changed files with 6 additions and 1 deletions

View file

@ -85,7 +85,7 @@ resource "null_resource" "data_share" {
connection {
type = "ssh"
user = "root"
host = "atlas.hyp"
host = var.hypervisor_host
}
provisioner "remote-exec" {

View file

@ -106,3 +106,8 @@ variable "add_data_share" {
default = true
description = "Whether to share /data with the guest OS."
}
variable "hypervisor_host" {
type = string
description = "Host of the hypervisor this VM runs on, in order to execute some remote-exec directives."
}