From 89d7ad537f91efdfb1c67c42f47ed06c86eb8b7d Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Thu, 4 May 2023 10:44:11 +0200 Subject: [PATCH] add option to specify hypervisor host --- main.tf | 2 +- variables.tf | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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." +}