Disable deployment components partially
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Danny Bessems 2022-03-03 10:34:17 +01:00
parent f39fd9d10e
commit e56b23c414
4 changed files with 18 additions and 17 deletions

View File

@ -5,7 +5,7 @@ data "vsphere_ovf_vm_template" "ovf-srv" {
host_system_id = data.vsphere_host.host.id
remote_ovf_url = "https://${var.repo_username}:${var.repo_password}@sn.itch.fyi/Repository/rel/Windows-Server-2019-LTSC.ova"
deployment_option = "domainmember"
deployment_option = "standalone-small"
disk_provisioning = "thin"
}
@ -54,19 +54,20 @@ resource "vsphere_virtual_machine" "vm-srv" {
"guestinfo.prefixlength" = "24"
"guestinfo.dnsserver" = "10.0.0.21"
"guestinfo.gateway" = "10.0.0.1"
"addsconfig.domainname" = var.adds_domainname
"addsconfig.username" = var.adds_username
"addsconfig.password" = var.adds_password
"guestinfo.administratorpw" = var.adds_password
"guestinfo.ntpserver" = "0.pool.ntp.org,1.pool.ntp.org,2.pool.ntp.org"
}
}
// "addsconfig.domainname" = var.adds_domainname
// "addsconfig.username" = var.adds_username
// "addsconfig.password" = var.adds_password
depends_on = [
vsphere_virtual_machine.vm-dc
]
// depends_on = [
// vsphere_virtual_machine.vm-dc
// ]
# # This does not actually achieve protection from destruction, see https://github.com/hashicorp/terraform/issues/17599
# lifecycle {
# prevent_destroy = true
# }
// # This does not actually achieve protection from destruction, see https://github.com/hashicorp/terraform/issues/17599
// lifecycle {
// prevent_destroy = true
// }
}