2019-11-15 15:23:41 -05:00
|
|
|
{
|
|
|
|
|
"variables": {
|
|
|
|
|
"client_id": "{{env `ARM_CLIENT_ID`}}",
|
|
|
|
|
"client_secret": "{{env `ARM_CLIENT_SECRET`}}",
|
|
|
|
|
"subscription_id": "{{env `ARM_SUBSCRIPTION_ID`}}",
|
|
|
|
|
"tenant_id": "{{env `ARM_TENANT_ID`}}",
|
|
|
|
|
"object_id": "{{env `ARM_OBJECT_ID`}}",
|
|
|
|
|
"resource_group": "{{env `ARM_RESOURCE_GROUP`}}",
|
|
|
|
|
"storage_account": "{{env `ARM_STORAGE_ACCOUNT`}}",
|
|
|
|
|
"temp_resource_group_name": "{{env `TEMP_RESOURCE_GROUP_NAME`}}",
|
|
|
|
|
"location": "{{env `ARM_RESOURCE_LOCATION`}}",
|
|
|
|
|
"virtual_network_name": "{{env `VNET_NAME`}}",
|
|
|
|
|
"virtual_network_resource_group_name": "{{env `VNET_RESOURCE_GROUP`}}",
|
|
|
|
|
"virtual_network_subnet_name": "{{env `VNET_SUBNET`}}",
|
|
|
|
|
"private_virtual_network_with_public_ip": "{{env `PRIVATE_VIRTUAL_NETWORK_WITH_PUBLIC_IP`}}",
|
2021-02-18 10:52:09 +03:00
|
|
|
"vm_size": "Standard_D8s_v4",
|
2020-03-24 09:17:38 +03:00
|
|
|
"run_scan_antivirus": "false",
|
2019-12-30 11:40:10 +03:00
|
|
|
"root_folder": "C:",
|
2020-04-30 18:11:40 +03:00
|
|
|
"toolset_json_path": "{{env `TEMP`}}\\toolset.json",
|
2019-11-15 15:23:41 -05:00
|
|
|
"image_folder": "C:\\image",
|
2020-03-08 17:41:55 +03:00
|
|
|
"imagedata_file": "C:\\imagedata.json",
|
2019-11-15 15:23:41 -05:00
|
|
|
"helper_script_folder": "C:\\Program Files\\WindowsPowerShell\\Modules\\",
|
2020-07-01 15:16:01 +03:00
|
|
|
"psmodules_root_folder": "C:\\Modules",
|
2021-02-09 08:41:06 -05:00
|
|
|
"agent_tools_directory": "C:\\hostedtoolcache\\windows",
|
2019-11-15 15:23:41 -05:00
|
|
|
"install_user": "installer",
|
|
|
|
|
"install_password": null,
|
|
|
|
|
"capture_name_prefix": "packer",
|
2019-12-30 11:40:10 +03:00
|
|
|
"image_version": "dev",
|
2020-11-18 12:40:07 +03:00
|
|
|
"image_os": "win19"
|
2019-11-15 15:23:41 -05:00
|
|
|
},
|
2020-09-21 13:24:05 -05:00
|
|
|
"sensitive-variables": [
|
|
|
|
|
"install_password",
|
2020-11-12 20:09:32 +03:00
|
|
|
"client_secret"
|
2020-09-21 13:24:05 -05:00
|
|
|
],
|
2019-11-15 15:23:41 -05:00
|
|
|
"builders": [
|
|
|
|
|
{
|
|
|
|
|
"name": "vhd",
|
|
|
|
|
"type": "azure-arm",
|
|
|
|
|
"client_id": "{{user `client_id`}}",
|
|
|
|
|
"client_secret": "{{user `client_secret`}}",
|
|
|
|
|
"subscription_id": "{{user `subscription_id`}}",
|
|
|
|
|
"object_id": "{{user `object_id`}}",
|
|
|
|
|
"tenant_id": "{{user `tenant_id`}}",
|
2020-01-22 16:14:54 -05:00
|
|
|
"os_disk_size_gb": "256",
|
2019-11-15 15:23:41 -05:00
|
|
|
"location": "{{user `location`}}",
|
|
|
|
|
"vm_size": "{{user `vm_size`}}",
|
|
|
|
|
"resource_group_name": "{{user `resource_group`}}",
|
|
|
|
|
"storage_account": "{{user `storage_account`}}",
|
|
|
|
|
"temp_resource_group_name": "{{user `temp_resource_group_name`}}",
|
|
|
|
|
"capture_container_name": "images",
|
|
|
|
|
"capture_name_prefix": "{{user `capture_name_prefix`}}",
|
|
|
|
|
"virtual_network_name": "{{user `virtual_network_name`}}",
|
|
|
|
|
"virtual_network_resource_group_name": "{{user `virtual_network_resource_group_name`}}",
|
|
|
|
|
"virtual_network_subnet_name": "{{user `virtual_network_subnet_name`}}",
|
|
|
|
|
"private_virtual_network_with_public_ip": "{{user `private_virtual_network_with_public_ip`}}",
|
|
|
|
|
"os_type": "Windows",
|
|
|
|
|
"image_publisher": "MicrosoftWindowsServer",
|
|
|
|
|
"image_offer": "WindowsServer",
|
|
|
|
|
"image_sku": "2019-Datacenter",
|
|
|
|
|
"communicator": "winrm",
|
|
|
|
|
"winrm_use_ssl": "true",
|
|
|
|
|
"winrm_insecure": "true",
|
|
|
|
|
"winrm_username": "packer"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"provisioners": [
|
|
|
|
|
{
|
|
|
|
|
"type": "powershell",
|
2020-09-21 13:24:05 -05:00
|
|
|
"inline": [
|
2020-08-24 12:31:51 +03:00
|
|
|
"New-Item -Path {{user `image_folder`}} -ItemType Directory -Force"
|
2019-11-15 15:23:41 -05:00
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "file",
|
|
|
|
|
"source": "{{ template_dir }}/scripts/ImageHelpers",
|
|
|
|
|
"destination": "{{user `helper_script_folder`}}"
|
|
|
|
|
},
|
2020-06-02 06:32:23 +00:00
|
|
|
{
|
|
|
|
|
"type": "file",
|
|
|
|
|
"source": "{{ template_dir }}/scripts/SoftwareReport",
|
|
|
|
|
"destination": "{{user `image_folder`}}"
|
|
|
|
|
},
|
2020-07-09 10:53:29 +03:00
|
|
|
{
|
|
|
|
|
"type": "file",
|
2020-10-01 11:52:39 +03:00
|
|
|
"source": "{{ template_dir }}/post-generation",
|
2020-10-16 15:34:35 +07:00
|
|
|
"destination": "C:/"
|
2020-06-02 06:32:23 +00:00
|
|
|
},
|
2020-07-09 10:53:29 +03:00
|
|
|
{
|
|
|
|
|
"type": "file",
|
|
|
|
|
"source": "{{ template_dir }}/scripts/Tests",
|
|
|
|
|
"destination": "{{user `image_folder`}}"
|
|
|
|
|
},
|
2020-07-22 14:04:40 +03:00
|
|
|
{
|
|
|
|
|
"type": "file",
|
|
|
|
|
"source": "{{template_dir}}/toolsets/toolset-2019.json",
|
|
|
|
|
"destination": "{{user `toolset_json_path`}}"
|
|
|
|
|
},
|
2019-11-15 15:23:41 -05:00
|
|
|
{
|
|
|
|
|
"type": "windows-shell",
|
|
|
|
|
"inline": [
|
2020-09-21 13:24:05 -05:00
|
|
|
"net user {{user `install_user`}} {{user `install_password`}} /add /passwordchg:no /passwordreq:yes /active:yes /Y",
|
2019-11-15 15:23:41 -05:00
|
|
|
"net localgroup Administrators {{user `install_user`}} /add",
|
|
|
|
|
"winrm set winrm/config/service/auth @{Basic=\"true\"}",
|
|
|
|
|
"winrm get winrm/config/service/auth"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "powershell",
|
|
|
|
|
"inline": [
|
|
|
|
|
"if (-not ((net localgroup Administrators) -contains '{{user `install_user`}}')) { exit 1 }"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "powershell",
|
|
|
|
|
"environment_vars": [
|
2021-01-27 10:12:48 +00:00
|
|
|
"IMAGE_VERSION={{user `image_version`}}",
|
|
|
|
|
"IMAGE_OS={{user `image_os`}}",
|
2021-02-09 08:41:06 -05:00
|
|
|
"AGENT_TOOLSDIRECTORY={{user `agent_tools_directory`}}",
|
2020-07-23 16:32:41 +03:00
|
|
|
"TOOLSET_JSON_PATH={{user `toolset_json_path`}}",
|
|
|
|
|
"PSMODULES_ROOT_FOLDER={{user `psmodules_root_folder`}}"
|
2019-11-15 15:23:41 -05:00
|
|
|
],
|
2020-09-21 13:24:05 -05:00
|
|
|
"scripts": [
|
2020-07-23 16:32:41 +03:00
|
|
|
"{{ template_dir }}/scripts/Installers/Install-PowerShellModules.ps1",
|
2020-08-08 08:01:33 +03:00
|
|
|
"{{ template_dir }}/scripts/Installers/Initialize-VM.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-WebPlatformInstaller.ps1"
|
2020-03-19 16:20:32 +01:00
|
|
|
],
|
|
|
|
|
"execution_policy": "unrestricted"
|
2019-11-15 15:23:41 -05:00
|
|
|
},
|
2020-07-09 11:57:02 +05:00
|
|
|
{
|
|
|
|
|
"type": "powershell",
|
|
|
|
|
"elevated_user": "SYSTEM",
|
|
|
|
|
"elevated_password": "",
|
2020-09-21 13:24:05 -05:00
|
|
|
"scripts": [
|
2020-07-09 11:57:02 +05:00
|
|
|
"{{ template_dir }}/scripts/Installers/Windows2019/Install-WSL.ps1"
|
|
|
|
|
]
|
|
|
|
|
},
|
2020-03-17 09:47:22 +03:00
|
|
|
{
|
|
|
|
|
"type": "powershell",
|
2020-09-21 13:24:05 -05:00
|
|
|
"scripts": [
|
2020-08-12 17:45:17 +07:00
|
|
|
"{{ template_dir }}/scripts/Installers/Update-DotnetTLS.ps1",
|
2019-11-15 15:23:41 -05:00
|
|
|
"{{ template_dir }}/scripts/Installers/Install-ContainersFeature.ps1"
|
|
|
|
|
]
|
|
|
|
|
},
|
2020-08-12 17:45:17 +07:00
|
|
|
{
|
|
|
|
|
"type": "windows-restart",
|
|
|
|
|
"restart_timeout": "10m"
|
|
|
|
|
},
|
2020-03-08 17:41:55 +03:00
|
|
|
{
|
|
|
|
|
"type": "powershell",
|
|
|
|
|
"environment_vars": [
|
|
|
|
|
"IMAGE_VERSION={{user `image_version`}}",
|
2021-01-29 11:38:57 +03:00
|
|
|
"IMAGEDATA_FILE={{user `imagedata_file`}}",
|
|
|
|
|
"TOOLSET_JSON_PATH={{user `toolset_json_path`}}"
|
2020-03-08 17:41:55 +03:00
|
|
|
],
|
2020-09-21 13:24:05 -05:00
|
|
|
"scripts": [
|
2020-08-12 17:45:17 +07:00
|
|
|
"{{ template_dir }}/scripts/Installers/Update-ImageData.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-Docker.ps1",
|
2019-11-15 15:23:41 -05:00
|
|
|
"{{ template_dir }}/scripts/Installers/Install-PowershellCore.ps1"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "windows-restart",
|
|
|
|
|
"restart_timeout": "10m"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "powershell",
|
|
|
|
|
"valid_exit_codes": [
|
|
|
|
|
0,
|
|
|
|
|
3010
|
|
|
|
|
],
|
2020-09-21 13:24:05 -05:00
|
|
|
"environment_vars": [
|
2020-07-22 14:04:40 +03:00
|
|
|
"TOOLSET_JSON_PATH={{user `toolset_json_path`}}"
|
|
|
|
|
],
|
2020-09-21 13:24:05 -05:00
|
|
|
"scripts": [
|
2020-10-02 11:50:58 +03:00
|
|
|
"{{ template_dir }}/scripts/Installers/Update-DockerImages.ps1",
|
2021-01-29 11:38:57 +03:00
|
|
|
"{{ template_dir }}/scripts/Installers/Install-KubernetesTools.ps1",
|
2020-08-12 17:45:17 +07:00
|
|
|
"{{ template_dir }}/scripts/Installers/Install-VS.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-NET48.ps1"
|
2019-11-15 15:23:41 -05:00
|
|
|
],
|
|
|
|
|
"elevated_user": "{{user `install_user`}}",
|
|
|
|
|
"elevated_password": "{{user `install_password`}}"
|
|
|
|
|
},
|
2020-06-15 20:10:54 +03:00
|
|
|
{
|
|
|
|
|
"type": "powershell",
|
2020-09-21 13:24:05 -05:00
|
|
|
"environment_vars": [
|
2020-09-15 12:22:05 +04:00
|
|
|
"TOOLSET_JSON_PATH={{user `toolset_json_path`}}"
|
|
|
|
|
],
|
2020-09-21 13:24:05 -05:00
|
|
|
"scripts": [
|
2020-08-12 17:45:17 +07:00
|
|
|
"{{ template_dir }}/scripts/Installers/Install-Nuget.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-Wix.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-WDK.ps1",
|
2020-09-11 15:05:02 +04:00
|
|
|
"{{ template_dir }}/scripts/Installers/Install-Vsix.ps1",
|
2020-08-12 17:45:17 +07:00
|
|
|
"{{ template_dir }}/scripts/Installers/Install-AzureCli.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-AzureDevOpsCli.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-AzCopy.ps1",
|
2020-09-25 14:51:01 +03:00
|
|
|
"{{ template_dir }}/scripts/Installers/Install-AzureDevSpacesCli.ps1",
|
2020-08-12 17:45:17 +07:00
|
|
|
"{{ template_dir }}/scripts/Installers/Install-NodeLts.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-7zip.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-Packer.ps1",
|
2020-08-28 10:34:51 +03:00
|
|
|
"{{ template_dir }}/scripts/Installers/Install-Pulumi.ps1",
|
2020-08-12 17:45:17 +07:00
|
|
|
"{{ template_dir }}/scripts/Installers/Install-JavaTools.ps1"
|
2020-02-17 14:19:30 +03:00
|
|
|
]
|
|
|
|
|
},
|
2019-11-15 15:23:41 -05:00
|
|
|
{
|
|
|
|
|
"type": "powershell",
|
2020-09-21 13:24:05 -05:00
|
|
|
"scripts": [
|
2019-11-15 15:23:41 -05:00
|
|
|
"{{ template_dir }}/scripts/Installers/Install-ServiceFabricSDK.ps1"
|
2020-03-26 16:20:08 +01:00
|
|
|
],
|
|
|
|
|
"execution_policy": "remotesigned"
|
2019-11-15 15:23:41 -05:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "windows-restart",
|
|
|
|
|
"restart_timeout": "10m"
|
|
|
|
|
},
|
2020-08-12 17:45:17 +07:00
|
|
|
{
|
|
|
|
|
"type": "windows-shell",
|
2020-09-21 13:24:05 -05:00
|
|
|
"inline": [
|
|
|
|
|
"wmic product where \"name like '%%microsoft azure powershell%%'\" call uninstall /nointeractive"
|
|
|
|
|
]
|
2020-08-12 17:45:17 +07:00
|
|
|
},
|
2020-05-18 11:08:06 +03:00
|
|
|
{
|
|
|
|
|
"type": "powershell",
|
2020-09-21 13:24:05 -05:00
|
|
|
"environment_vars": [
|
2020-07-16 07:30:34 +03:00
|
|
|
"TOOLSET_JSON_PATH={{user `toolset_json_path`}}",
|
2020-08-12 17:45:17 +07:00
|
|
|
"ROOT_FOLDER={{user `root_folder`}}",
|
|
|
|
|
"PSMODULES_ROOT_FOLDER={{user `psmodules_root_folder`}}"
|
2020-04-30 18:11:40 +03:00
|
|
|
],
|
2020-09-21 13:24:05 -05:00
|
|
|
"scripts": [
|
2020-11-13 10:25:05 +03:00
|
|
|
"{{ template_dir }}/scripts/Installers/Install-Ruby.ps1",
|
2020-07-16 07:30:34 +03:00
|
|
|
"{{ template_dir }}/scripts/Installers/Install-PyPy.ps1",
|
2020-06-30 07:48:55 +03:00
|
|
|
"{{ template_dir }}/scripts/Installers/Install-Toolset.ps1",
|
2020-07-30 17:25:02 +03:00
|
|
|
"{{ template_dir }}/scripts/Installers/Configure-Toolset.ps1",
|
2020-08-12 17:45:17 +07:00
|
|
|
"{{ template_dir }}/scripts/Installers/Update-AndroidSDK.ps1",
|
2020-10-21 08:44:06 +03:00
|
|
|
"{{ template_dir }}/scripts/Installers/Install-AzureModules.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-Pipx.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-PipxPackages.ps1"
|
2019-12-19 16:19:58 +03:00
|
|
|
]
|
|
|
|
|
},
|
2019-11-15 15:23:41 -05:00
|
|
|
{
|
|
|
|
|
"type": "powershell",
|
2020-09-21 13:24:05 -05:00
|
|
|
"scripts": [
|
2020-08-12 17:45:17 +07:00
|
|
|
"{{ template_dir }}/scripts/Installers/Install-OpenSSL.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-Perl.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-Git.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-GitHub-CLI.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-PHP.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-Rust.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-Julia.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-Sbt.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-Svn.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-Chrome.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-Edge.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-Firefox.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-Selenium.ps1",
|
2021-02-01 06:03:49 -08:00
|
|
|
"{{ template_dir }}/scripts/Installers/Install-IEWebDriver.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-Apache.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-Nginx.ps1"
|
2019-11-15 15:23:41 -05:00
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "powershell",
|
2020-09-21 13:24:05 -05:00
|
|
|
"scripts": [
|
2019-11-15 15:23:41 -05:00
|
|
|
"{{ template_dir }}/scripts/Installers/Enable-DeveloperMode.ps1"
|
|
|
|
|
],
|
|
|
|
|
"elevated_user": "{{user `install_user`}}",
|
|
|
|
|
"elevated_password": "{{user `install_password`}}"
|
|
|
|
|
},
|
2020-05-12 12:50:42 +03:00
|
|
|
{
|
|
|
|
|
"type": "powershell",
|
|
|
|
|
"elevated_user": "SYSTEM",
|
|
|
|
|
"elevated_password": "",
|
2020-09-21 13:24:05 -05:00
|
|
|
"scripts": [
|
2020-05-12 12:50:42 +03:00
|
|
|
"{{ template_dir }}/scripts/Installers/Install-Msys2.ps1"
|
|
|
|
|
]
|
|
|
|
|
},
|
2019-11-15 15:23:41 -05:00
|
|
|
{
|
|
|
|
|
"type": "powershell",
|
2020-11-10 15:50:34 +03:00
|
|
|
"environment_vars": [
|
|
|
|
|
"TOOLSET_JSON_PATH={{user `toolset_json_path`}}"
|
|
|
|
|
],
|
2020-09-21 13:24:05 -05:00
|
|
|
"scripts": [
|
2020-08-12 17:45:17 +07:00
|
|
|
"{{ template_dir }}/scripts/Installers/Install-VSWhere.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-WinAppDriver.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-Cmake.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-R.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-AWS.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-DACFx.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-MysqlCli.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-SQLPowerShellTools.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-DotnetSDK.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-Mingw64.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-TypeScript.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-Haskell.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-Stack.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-Miniconda.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-AzureCosmosDbEmulator.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-Mercurial.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-Jq.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-Zstd.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-InnoSetup.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-GitVersion.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-NSIS.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-CloudFoundryCli.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-Vcpkg.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-PostgreSQL.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-Bazel.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-AliyunCli.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-RootCA.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-MongoDB.ps1",
|
2020-09-08 15:27:27 +01:00
|
|
|
"{{ template_dir }}/scripts/Installers/Install-GoogleCloudSDK.ps1",
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-CodeQLBundle.ps1"
|
2020-06-24 11:37:36 +03:00
|
|
|
]
|
|
|
|
|
},
|
2020-06-22 01:25:04 -07:00
|
|
|
{
|
|
|
|
|
"type": "powershell",
|
2020-11-24 08:20:02 -08:00
|
|
|
"scripts": [
|
|
|
|
|
"{{ template_dir }}/scripts/Installers/Install-BizTalkBuildComponent.ps1"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "powershell",
|
2020-09-21 13:24:05 -05:00
|
|
|
"scripts": [
|
2020-08-24 09:44:21 +03:00
|
|
|
"{{ template_dir }}/scripts/Installers/Install-WindowsUpdates.ps1",
|
2021-01-15 13:42:37 +03:00
|
|
|
"{{ template_dir }}/scripts/Installers/Configure-DynamicPort.ps1",
|
2021-02-24 18:48:49 +03:00
|
|
|
"{{ template_dir }}/scripts/Installers/Configure-GDIProcessHandleQuota.ps1",
|
2021-01-15 13:42:37 +03:00
|
|
|
"{{ template_dir }}/scripts/Installers/Configure-Shell.ps1"
|
2020-06-22 01:25:04 -07:00
|
|
|
],
|
|
|
|
|
"elevated_user": "{{user `install_user`}}",
|
|
|
|
|
"elevated_password": "{{user `install_password`}}"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "windows-restart",
|
2020-07-15 14:05:34 +03:00
|
|
|
"restart_timeout": "30m"
|
2020-06-22 01:25:04 -07:00
|
|
|
},
|
2020-07-09 10:53:29 +03:00
|
|
|
{
|
|
|
|
|
"type": "powershell",
|
2020-09-21 13:24:05 -05:00
|
|
|
"scripts": [
|
2020-07-09 10:53:29 +03:00
|
|
|
"{{ template_dir }}/scripts/Tests/RunAll-Tests.ps1"
|
2020-07-16 07:30:34 +03:00
|
|
|
],
|
2020-09-21 13:24:05 -05:00
|
|
|
"environment_vars": [
|
2020-07-16 07:30:34 +03:00
|
|
|
"TOOLSET_JSON_PATH={{user `toolset_json_path`}}",
|
2020-07-21 09:50:01 +03:00
|
|
|
"PSMODULES_ROOT_FOLDER={{user `psmodules_root_folder`}}",
|
2020-07-16 07:30:34 +03:00
|
|
|
"ROOT_FOLDER={{user `root_folder`}}"
|
2020-07-09 10:53:29 +03:00
|
|
|
]
|
|
|
|
|
},
|
2020-06-02 06:32:23 +00:00
|
|
|
{
|
|
|
|
|
"type": "powershell",
|
|
|
|
|
"inline": [
|
|
|
|
|
"pwsh -File '{{user `image_folder`}}\\SoftwareReport\\SoftwareReport.Generator.ps1'"
|
2020-07-23 16:32:41 +03:00
|
|
|
],
|
2020-09-21 13:24:05 -05:00
|
|
|
"environment_vars": [
|
2021-01-27 10:12:48 +00:00
|
|
|
"IMAGE_VERSION={{user `image_version`}}",
|
2020-11-17 10:20:55 +03:00
|
|
|
"TOOLSET_JSON_PATH={{user `toolset_json_path`}}"
|
2020-06-02 06:32:23 +00:00
|
|
|
]
|
|
|
|
|
},
|
2019-11-15 15:23:41 -05:00
|
|
|
{
|
|
|
|
|
"type": "file",
|
|
|
|
|
"source": "C:\\InstalledSoftware.md",
|
2019-12-11 14:58:32 -05:00
|
|
|
"destination": "{{ template_dir }}/Windows2019-Readme.md",
|
2019-11-15 15:23:41 -05:00
|
|
|
"direction": "download"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "powershell",
|
2020-09-21 13:24:05 -05:00
|
|
|
"scripts": [
|
2019-11-15 15:23:41 -05:00
|
|
|
"{{ template_dir }}/scripts/Installers/Finalize-VM.ps1"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "windows-restart",
|
|
|
|
|
"restart_timeout": "10m"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "powershell",
|
2020-09-21 13:24:05 -05:00
|
|
|
"environment_vars": [
|
2020-03-24 09:17:38 +03:00
|
|
|
"RUN_SCAN_ANTIVIRUS={{user `run_scan_antivirus`}}"
|
|
|
|
|
],
|
2020-09-21 13:24:05 -05:00
|
|
|
"scripts": [
|
2020-03-24 09:17:38 +03:00
|
|
|
"{{ template_dir }}/scripts/Installers/Run-Antivirus.ps1"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "powershell",
|
2020-09-21 13:24:05 -05:00
|
|
|
"scripts": [
|
2020-03-24 09:17:38 +03:00
|
|
|
"{{ template_dir }}/scripts/Installers/Configure-Antivirus.ps1"
|
2019-11-15 15:23:41 -05:00
|
|
|
]
|
|
|
|
|
},
|
2020-05-06 09:44:53 +03:00
|
|
|
{
|
|
|
|
|
"type": "powershell",
|
2020-09-21 13:24:05 -05:00
|
|
|
"scripts": [
|
2020-05-06 09:44:53 +03:00
|
|
|
"{{ template_dir }}/scripts/Installers/Disable-JITDebugger.ps1"
|
|
|
|
|
]
|
|
|
|
|
},
|
2020-07-30 09:56:11 +03:00
|
|
|
{
|
|
|
|
|
"type": "powershell",
|
2020-09-21 13:24:05 -05:00
|
|
|
"scripts": [
|
2020-07-30 09:56:11 +03:00
|
|
|
"{{ template_dir }}/scripts/Installers/Run-NGen.ps1"
|
|
|
|
|
]
|
|
|
|
|
},
|
2019-11-15 15:23:41 -05:00
|
|
|
{
|
|
|
|
|
"type": "powershell",
|
|
|
|
|
"inline": [
|
|
|
|
|
"if( Test-Path $Env:SystemRoot\\System32\\Sysprep\\unattend.xml ){ rm $Env:SystemRoot\\System32\\Sysprep\\unattend.xml -Force}",
|
|
|
|
|
"& $env:SystemRoot\\System32\\Sysprep\\Sysprep.exe /oobe /generalize /quiet /quit",
|
|
|
|
|
"while($true) { $imageState = Get-ItemProperty HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Setup\\State | Select ImageState; if($imageState.ImageState -ne 'IMAGE_STATE_GENERALIZE_RESEAL_TO_OOBE') { Write-Output $imageState.ImageState; Start-Sleep -s 10 } else { break } }"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
]
|
2020-07-09 11:57:02 +05:00
|
|
|
}
|