You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by jb...@apache.org on 2017/01/24 22:06:08 UTC
geode git commit: GEODE-2343: Fixes password expiration.
Repository: geode
Updated Branches:
refs/heads/next-gen-native-client-software-grant 8ca13cb83 -> cc1486f8b
GEODE-2343: Fixes password expiration.
* Moves file uploads to start of script.
Project: http://git-wip-us.apache.org/repos/asf/geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/geode/commit/cc1486f8
Tree: http://git-wip-us.apache.org/repos/asf/geode/tree/cc1486f8
Diff: http://git-wip-us.apache.org/repos/asf/geode/diff/cc1486f8
Branch: refs/heads/next-gen-native-client-software-grant
Commit: cc1486f8bae7b27cbec54eb78aba3f3f05a9ce1d
Parents: 8ca13cb
Author: Jacob Barrett <jb...@pivotal.io>
Authored: Tue Jan 24 14:05:24 2017 -0800
Committer: Jacob Barrett <jb...@pivotal.io>
Committed: Tue Jan 24 14:05:24 2017 -0800
----------------------------------------------------------------------
packer/build-windows.json | 48 ++++++++++++++--------------------
packer/windows/add-user-build.ps1 | 1 +
2 files changed, 20 insertions(+), 29 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/geode/blob/cc1486f8/packer/build-windows.json
----------------------------------------------------------------------
diff --git a/packer/build-windows.json b/packer/build-windows.json
index aeea141..759c448 100644
--- a/packer/build-windows.json
+++ b/packer/build-windows.json
@@ -36,6 +36,23 @@
"provisioners":[
{
"pause_before":"30s",
+ "type":"file",
+ "source":"{{user `gemfire_archive`}}",
+ "destination":"gemfire.tar.gz"
+ },
+ {
+ "pause_before":"30s",
+ "type":"file",
+ "source":"windows/init-user-build.ps1",
+ "destination":"C:/Users/build/init-user-build.ps1"
+ },
+ {
+ "pause_before":"30s",
+ "type":"file",
+ "source":"windows/buildenv.bat",
+ "destination":"C:/Users/build/buildenv.bat"
+ },
+ {
"type":"powershell",
"inline":[
"choco install jdk8 -confirm",
@@ -57,45 +74,18 @@
"type":"powershell",
"scripts":[
"windows/install-perl.ps1",
- "windows/install-gnuwin.ps1"
- ]
- },
- {
- "type":"file",
- "source":"{{user `gemfire_archive`}}",
- "destination":"gemfire.tar.gz"
- },
- {
- "type":"powershell",
- "scripts":[
+ "windows/install-gnuwin.ps1",
"windows/install-gemfire.ps1"
]
},
{
"type":"powershell",
"scripts":[
- "windows/add-user-build.ps1"
- ]
- },
- {
- "pause_before":"30s",
- "type":"file",
- "source":"windows/init-user-build.ps1",
- "destination":"C:/Users/build/init-user-build.ps1"
- },
- {
- "pause_before":"30s",
- "type":"powershell",
- "scripts":[
+ "windows/add-user-build.ps1",
"windows/run-sshd-as-build.ps1"
]
},
{
- "type":"file",
- "source":"windows/buildenv.bat",
- "destination":"C:/Users/build/buildenv.bat"
- },
- {
"type":"powershell",
"scripts":[
"windows/cleanup.ps1"
http://git-wip-us.apache.org/repos/asf/geode/blob/cc1486f8/packer/windows/add-user-build.ps1
----------------------------------------------------------------------
diff --git a/packer/windows/add-user-build.ps1 b/packer/windows/add-user-build.ps1
index 3a488b6..3f56b28 100644
--- a/packer/windows/add-user-build.ps1
+++ b/packer/windows/add-user-build.ps1
@@ -3,6 +3,7 @@ $pass = "p1votal!"
net.exe user $user $pass /add
net.exe localgroup Administrators $user /add
+wmic.exe UserAccount where "Name='$user'" set PasswordExpires=False
$spw = ConvertTo-SecureString $pass -AsPlainText -Force
$cred = New-Object System.Management.Automation.PSCredential -ArgumentList $user,$spw