From e56b23c41475fba5b4fb899dee066e6d4abb6d52 Mon Sep 17 00:00:00 2001 From: djpbessems Date: Thu, 3 Mar 2022 10:34:17 +0100 Subject: [PATCH] Disable deployment components partially --- terraform/{CA01.tf => CA01.tf.disabled} | 0 terraform/{CA02.tf => CA02.tf.disabled} | 0 terraform/{DC01.tf => DC01.tf.disabled} | 0 terraform/SRV01.tf | 35 +++++++++++++------------ 4 files changed, 18 insertions(+), 17 deletions(-) rename terraform/{CA01.tf => CA01.tf.disabled} (100%) rename terraform/{CA02.tf => CA02.tf.disabled} (100%) rename terraform/{DC01.tf => DC01.tf.disabled} (100%) diff --git a/terraform/CA01.tf b/terraform/CA01.tf.disabled similarity index 100% rename from terraform/CA01.tf rename to terraform/CA01.tf.disabled diff --git a/terraform/CA02.tf b/terraform/CA02.tf.disabled similarity index 100% rename from terraform/CA02.tf rename to terraform/CA02.tf.disabled diff --git a/terraform/DC01.tf b/terraform/DC01.tf.disabled similarity index 100% rename from terraform/DC01.tf rename to terraform/DC01.tf.disabled diff --git a/terraform/SRV01.tf b/terraform/SRV01.tf index faa9251..e36e9e9 100644 --- a/terraform/SRV01.tf +++ b/terraform/SRV01.tf @@ -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 + // } } \ No newline at end of file