Clobber Database

Allow VC rebuild without DC rebuild with VC 6, clobberdb in json file
Also more VCloud & VShield removal
pull/45/head
DemitasseNZ 2016-04-14 19:33:38 +12:00
parent aba18cf990
commit f3afa4d5b3
4 changed files with 3 additions and 24 deletions

View File

@ -103,7 +103,7 @@ if (Test-Path "B:\ESXi60\*") {
if ((Test-Path "B:\ESXi60\*.iso") -and !(Test-Path "B:\ESXi60\BOOT.CFG") ){
Write-BuildLog "Extracting ESXi 6.0 installer from ISO."
. "C:\Program Files\7-Zip\7z.exe" x -r -y -aoa -oB:\ESXi60\ B:\ESXi60\*.iso >> C:\ExtractLog.txt
} Else
}
Write-BuildLog "ESXi 6.0 found; creating C:\TFTP-Root\ESXi60 and copying ESXi 6.0 boot files."
$null = $null = New-Item -Path C:\TFTP-Root\ESXi60 -ItemType Directory -Force -Confirm:$false
xcopy B:\ESXi60\*.* C:\TFTP-Root\ESXi60 /s /c /y /q

View File

@ -92,14 +92,6 @@ if (Test-Path "B:\Automate\automate.ini") {
} else {
$AutoAddHosts = $false
}
$AutoVCNS = "false"
$AutoVCNS = ((Select-String -SimpleMatch "AutoVCNS=" -Path "B:\Automate\automate.ini").line).substring(9)
if ($AutoVCNS -like "true") {
$AutoVCNS = $true
Write-BuildLog " vShield Manager will be automatically deployed"
} else {
$AutoVCNS = $false
}
$AdminPWD = "VMware1!"
$AdminPWD = ((Select-String -SimpleMatch "Adminpwd=" -Path "B:\Automate\automate.ini").line).substring(9)
$emailto = ((Select-String -SimpleMatch "emailto=" -Path "B:\Automate\automate.ini").line).substring(8)
@ -634,17 +626,6 @@ If (($AutoAddHosts -eq "True") -and (Test-Path "c:\Addhosts.ps1")){
Write-BuildLog " "
Start-Process c:\windows\syswow64\WindowsPowerShell\v1.0\powershell.exe -ArgumentList " C:\AddHosts.ps1" -wait
}
If ($AutovCNS -eq "True"){
Write-BuildLog "vShield"
If (($VCInstall -eq "51") -and (Test-Path "C:\vShield51.ps1")) {
Write-BuildLog "Automatically deploying vShield 5.1."
Start-Process c:\windows\syswow64\WindowsPowerShell\v1.0\powershell.exe -ArgumentList " C:\vShield51.ps1" -wait
}
If (($VCInstall -eq "5") -and (Test-Path "C:\vShield15.ps1")) {
Write-BuildLog "Automatically deploying vShield 5.0."
. "C:\vShield15.ps1"
}
}
Write-BuildLog "Installing VMware tools, build complete after reboot."
if (Test-Path B:\VMTools\setup64.exe) {
#Read-Host "End of install checkpoint, before VMTools"

View File

@ -48,8 +48,8 @@
"workflow.int.jmx-port" : 19999,
"workflow.int.service-port" : 8088
},
"clientlocale" : "en",
"db.clobber" : null,
"clientlocale" : "yes",
"db.clobber" : "yes",
"db.dsn" : "vCenterDB",
"db.password" : "VMware1!",
"db.type" : "external",

View File

@ -4,13 +4,11 @@ TZ=New Zealand Standard Time
VCInstall=60
VCInstallOptions=4,5,51,55,60,None,Base
AutoAddHosts=false
AutoVCNS=No
DeployVUM=true
Adminpwd=VMware1!
BuildDatastores=True
BuildVM=true
BuildOptions=True,False
ProductKey=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
ViewInstall=None