This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install-WindowsFeature AD-Domain-Services | |
$ForestConfig = @{ | |
CreateDnsDelegation = $false | |
DatabasePath = 'C:\Windows\NTDS' | |
DomainMode = 'Win2012R2' | |
DomainName = 'yourdomain.com' | |
DomainNetbiosName = 'YOURDOMAIN' | |
ForestMode = 'Win2016' | |
InstallDns = $true | |
LogPath = 'C:\Windows\NTDS' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires POSH-SSH | |
#Fix for replication bug 'Several days after upgrading to 3.0.3 or 3.0.4, the replications synchronization stops progressing' | |
#As detailed in release notes | |
#https://docs.vmware.com/en/VMware-vCloud-Availability/3.0.4/rn/VMware-vCloud-Availability-304-Release-Notes.html | |
$vca_replicators = @{ | |
"rep01" = 'password' | |
"rep02" = 'password' | |
"rep03" = 'password' | |
"rep04" = 'password' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The provider is the system we are connecting to or managing. In this case | |
# the provider is 'vcd'. For the vcd provider, we need to provide the following. | |
# The vcd Provider supports both provider and tenants, in this instance we are assigning an Org, | |
# the credentials provided are local to that tenant | |
provider "vcd" { | |
user = "youruser" | |
password = "YourSecurePassword" | |
org = "ACME" | |
vdc = "VDC3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The provider is the system we are connecting to or managing. In this case | |
# the provider is 'vsphere'. For the vSphere provider, we need to provide the | |
# vCenter server and credentials to connect. In this example, we are using variables for this | |
provider "vsphere" { | |
user = var.vsphere_user | |
password = var.vsphere_password | |
vsphere_server = var.vsphere_server | |
# If you have a self-signed cert |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# VMware vCloud Director Provider Variables (Blank) | |
variable "vcd_user" { | |
description = "vCD Tenant User" | |
} | |
variable "vcd_pass" { | |
description = "vCD Tenant Password" | |
} | |
variable "vcd_org" { | |
description = "vCD Tenant Org" | |
} |