From b2f008ca4bf0d26a8478b3844c659388a8e585a8 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Fri, 22 Jul 2022 14:08:33 -0400 Subject: [PATCH] Remove fixed password setups in Windows Packer Signed-off-by: Peter Zhu --- packer/config/windows/launch-config.json | 8 -------- packer/jenkins-agent-win2016-x64.json | 5 ----- packer/jenkins-agent-win2019-x64-alpine-wsl.json | 5 ----- packer/jenkins-agent-win2019-x64.json | 5 ----- 4 files changed, 23 deletions(-) delete mode 100644 packer/config/windows/launch-config.json diff --git a/packer/config/windows/launch-config.json b/packer/config/windows/launch-config.json deleted file mode 100644 index f379ed43..00000000 --- a/packer/config/windows/launch-config.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "setComputerName": false, - "setWallpaper": true, - "addDnsSuffixList": true, - "extendBootVolumeSize": true, - "adminPasswordType": "Specify", - "adminPassword": "EnterYourPassWordMustMatchAwsPasswordRequirements" -} diff --git a/packer/jenkins-agent-win2016-x64.json b/packer/jenkins-agent-win2016-x64.json index ad179cd5..5755a106 100644 --- a/packer/jenkins-agent-win2016-x64.json +++ b/packer/jenkins-agent-win2016-x64.json @@ -69,11 +69,6 @@ ], "max_retries": 3 }, - { - "type":"file", - "source":"config/windows/launch-config.json", - "destination":"C:\\ProgramData\\Amazon\\EC2-Windows\\Launch\\Config\\LaunchConfig.json" - }, { "type":"powershell", "inline":"C:\\ProgramData\\Amazon\\EC2-Windows\\Launch\\Scripts\\InitializeInstance.ps1 -Schedule" diff --git a/packer/jenkins-agent-win2019-x64-alpine-wsl.json b/packer/jenkins-agent-win2019-x64-alpine-wsl.json index 0bf56da4..91885ef2 100644 --- a/packer/jenkins-agent-win2019-x64-alpine-wsl.json +++ b/packer/jenkins-agent-win2019-x64-alpine-wsl.json @@ -70,11 +70,6 @@ ], "max_retries": 3 }, - { - "type":"file", - "source":"config/windows/launch-config.json", - "destination":"C:\\ProgramData\\Amazon\\EC2-Windows\\Launch\\Config\\LaunchConfig.json" - }, { "type": "windows-restart" }, diff --git a/packer/jenkins-agent-win2019-x64.json b/packer/jenkins-agent-win2019-x64.json index 93d248ae..265bf565 100644 --- a/packer/jenkins-agent-win2019-x64.json +++ b/packer/jenkins-agent-win2019-x64.json @@ -69,11 +69,6 @@ ], "max_retries": 3 }, - { - "type":"file", - "source":"config/windows/launch-config.json", - "destination":"C:\\ProgramData\\Amazon\\EC2-Windows\\Launch\\Config\\LaunchConfig.json" - }, { "type": "windows-restart" },