Disable deployment components partially
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
f39fd9d10e
commit
e56b23c414
@ -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"
|
||||
}
|
||||
@ -49,24 +49,25 @@ resource "vsphere_virtual_machine" "vm-srv" {
|
||||
|
||||
vapp {
|
||||
properties = {
|
||||
"guestinfo.hostname" = "TF-SRV01"
|
||||
"guestinfo.ipaddress" = "10.0.0.42"
|
||||
"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.hostname" = "TF-SRV01"
|
||||
"guestinfo.ipaddress" = "10.0.0.42"
|
||||
"guestinfo.prefixlength" = "24"
|
||||
"guestinfo.dnsserver" = "10.0.0.21"
|
||||
"guestinfo.gateway" = "10.0.0.1"
|
||||
"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
|
||||
// }
|
||||
}
|
Loading…
Reference in New Issue
Block a user