Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 5424280

Browse files
committed
move the LGPO binary from the updated location
- LGPO was updated to V3; the path to the binary in the release zip changed in this update, requiring an additional move from the binary's new location. [#174712910](https://www.pivotaltracker.com/story/show/174712910) Update pipeline to work with the latest LGPO.zip
1 parent a898772 commit 5424280

File tree

3 files changed

+5
-46
lines changed

3 files changed

+5
-46
lines changed

stemcell-automation/AutomationHelpers.Tests.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -723,8 +723,8 @@ function CreateFakeLGPOZip
723723
{
724724
param([string]$dir, [string]$fakeZipPath)
725725

726-
New-Item -ItemType Directory "$dir\LGPO"
727-
echo "fake lgpo" > "$dir\LGPO\LGPO.exe"
726+
New-Item -ItemType Directory "$dir\LGPO\LGPO_30"
727+
echo "fake lgpo" > "$dir\LGPO\LGPO_30\LGPO.exe"
728728

729729
Compress-Archive -Force -Path "$dir\LGPO\*" -DestinationPath $fakeZipPath
730730
}
@@ -902,7 +902,7 @@ Describe "Extract-LGPO" {
902902
Extract-LGPO
903903

904904
$lgpoexepath = "$env:WINDIR\LGPO.exe"
905-
Test-Path -Path $lgpoexepath
905+
Test-Path -Path $lgpoexepath | Should -Be $true
906906
}
907907
}
908908

stemcell-automation/AutomationHelpers.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,7 @@ function Extract-LGPO
423423
{
424424
$LGPOPath="./LGPO.zip"
425425
Expand-Archive -LiteralPath $LGPOPath -DestinationPath "$env:WINDIR\"
426+
Move-Item -PATH "$env:WINDIR\LGPO_30\*.exe" -Destination "$env:WINDIR\"
426427
Write-Log "Successfully migrated LGPO to destination dir"
427428
}
428429
}

stemcell-automation/README.md

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,7 @@
1-
# BOSH Windows Stemcell Automation [![slack.cloudfoundry.org](https://slack.cloudfoundry.org/badge.svg)](https://slack.cloudfoundry.org)
2-
3-
BOSH Windows stemcell automation is an automation tool used to create local BOSH Windows stemcells which can be deployed on [Cloud Foundry BOSH](https://bosh.io).
4-
5-
## Supported IaaS
6-
The BOSH Windows stemcell automation tool will create stemcells for the following IaaS:
7-
* VMware vSphere
8-
9-
## Compatibility Matrix
10-
11-
| OS Line | stemcell automation version | Stemcell Version
12-
| :--- | --- | ---
13-
| 1709 | 0.11 | 1709.20
14-
| 1803 | 0.11 | 1803.9
15-
| 2019 | 0.11 | 2019.3
16-
| 1709 | 0.9 | 1709.19
17-
| 1803 | 0.9 | 1803.8
18-
| 1709 | 0.9 | 1709.19
19-
| 1803 | 0.8 | 1803.7
20-
| 1709 | 0.8 | 1709.18
21-
| 1803 | 0.7 | 1803.6
22-
| 1709 | 0.7 | 1709.17
23-
| 1803 | 0.6 | 1803.5
24-
| 1709 | 0.6 | 1709.16
25-
| 1803 | 0.5 | 1803.4
26-
| 1709 | 0.5 | 1709.15
27-
| 1803 | 0.4 | 1803.3
28-
| 1709 | 0.4 | 1709.14
29-
| 1709 | 0.3 | 1709.13
30-
| 1803 | 0.3 | 1803.2
31-
| 1709 | 0.2 | 1709.11
32-
| 1803 | 0.2 | 1803.1
33-
34-
## Supported Windows Server versions
35-
The BOSH Windows stemcell automation tool is compatible with the following Windows versions:
36-
37-
* Windows Server 1709
38-
* Windows Server 1803
39-
* Windows Server 2019
40-
41-
421
## Prerequisites
432
The following need to be downloaded:
44-
* Local Group Policy Object Utility v2.2 - [LGPO.exe](https://www.microsoft.com/en-us/download/details.aspx?id=55319)
3+
* Local Group Policy Object Utility v3 - [LGPO.exe](https://www.microsoft.com/en-us/download/details.aspx?id=55319)
454
* The appropriate BOSH Windows stemcell automation release for the desired Windows stemcell version - [StemcellAutomation.zip](https://github.com/cloudfoundry-incubator/bosh-windows-stemcell-automation/releases)
46-
* A Windows Server 1709 installation disk ISO
475

486
## Creating a BOSH Windows stemcell
497
### 1. Preparing the VM

0 commit comments

Comments
 (0)