add option to specify hypervisor host
This commit is contained in:
parent
4c29372a1c
commit
89d7ad537f
2 changed files with 6 additions and 1 deletions
2
main.tf
2
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" {
|
||||
|
|
|
@ -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."
|
||||
}
|
||||
|
|
Reference in a new issue