diff --git a/main.tf b/main.tf index 8c78dea..078a26e 100644 --- a/main.tf +++ b/main.tf @@ -85,7 +85,7 @@ resource "null_resource" "data_share" { connection { type = "ssh" user = "root" - host = "atlas.hyp" + host = var.hypervisor_host } provisioner "remote-exec" { diff --git a/variables.tf b/variables.tf index 9d57ba2..be8d7b2 100644 --- a/variables.tf +++ b/variables.tf @@ -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." +}