From f39fd9d10e5de27e6d36e645765a2b644eeb8ddb Mon Sep 17 00:00:00 2001 From: djpbessems Date: Mon, 5 Apr 2021 10:35:22 +0200 Subject: [PATCH] Optimized settings for deployment --- terraform/CA01.tf | 3 +++ terraform/CA02.tf | 3 +++ terraform/DC01.tf | 3 +++ terraform/SRV01.tf | 3 +++ 4 files changed, 12 insertions(+) diff --git a/terraform/CA01.tf b/terraform/CA01.tf index b0424f0..5c61488 100644 --- a/terraform/CA01.tf +++ b/terraform/CA01.tf @@ -8,6 +8,8 @@ data "vsphere_ovf_vm_template" "ovf-rootca" { # deployment_option = "standalone-root" remote_ovf_url = "https://${var.repo_username}:${var.repo_password}@sn.itch.fyi/Repository/rel/Windows-Server-2019-LTSC.ova" deployment_option = "standalone" + + disk_provisioning = "thin" } resource "vsphere_virtual_machine" "vm-rootca" { @@ -27,6 +29,7 @@ resource "vsphere_virtual_machine" "vm-rootca" { network_interface { network_id = data.vsphere_network.network.id } + wait_for_guest_net_timeout = 15 disk { label = "disk0" diff --git a/terraform/CA02.tf b/terraform/CA02.tf index df32889..1d439d2 100644 --- a/terraform/CA02.tf +++ b/terraform/CA02.tf @@ -8,6 +8,8 @@ data "vsphere_ovf_vm_template" "ovf-intermediateca" { # deployment_option = "enterprise-intermediate" remote_ovf_url = "https://${var.repo_username}:${var.repo_password}@sn.itch.fyi/Repository/rel/Windows-Server-2019-LTSC.ova" deployment_option = "domainmember" + + disk_provisioning = "thin" } resource "vsphere_virtual_machine" "vm-intermediateca" { @@ -27,6 +29,7 @@ resource "vsphere_virtual_machine" "vm-intermediateca" { network_interface { network_id = data.vsphere_network.network.id } + wait_for_guest_net_timeout = 15 disk { label = "disk0" diff --git a/terraform/DC01.tf b/terraform/DC01.tf index a20fd15..0b3359e 100644 --- a/terraform/DC01.tf +++ b/terraform/DC01.tf @@ -6,6 +6,8 @@ data "vsphere_ovf_vm_template" "ovf-dc" { remote_ovf_url = "https://${var.repo_username}:${var.repo_password}@sn.itch.fyi/Repository/rel/ADDS-appliance.ova" deployment_option = "standalone" + + disk_provisioning = "thin" } resource "vsphere_virtual_machine" "vm-dc" { @@ -25,6 +27,7 @@ resource "vsphere_virtual_machine" "vm-dc" { network_interface { network_id = data.vsphere_network.network.id } + wait_for_guest_net_timeout = 15 disk { label = "disk0" diff --git a/terraform/SRV01.tf b/terraform/SRV01.tf index 7dc0cde..faa9251 100644 --- a/terraform/SRV01.tf +++ b/terraform/SRV01.tf @@ -6,6 +6,8 @@ data "vsphere_ovf_vm_template" "ovf-srv" { remote_ovf_url = "https://${var.repo_username}:${var.repo_password}@sn.itch.fyi/Repository/rel/Windows-Server-2019-LTSC.ova" deployment_option = "domainmember" + + disk_provisioning = "thin" } resource "vsphere_virtual_machine" "vm-srv" { @@ -25,6 +27,7 @@ resource "vsphere_virtual_machine" "vm-srv" { network_interface { network_id = data.vsphere_network.network.id } + wait_for_guest_net_timeout = 15 disk { label = "disk0"