Commit e4c0ef64 authored by Stefan Scherer's avatar Stefan Scherer

Separate atlas template

parent 213c0038
......@@ -36,42 +36,6 @@
"vhv.enable": "TRUE"
}
},
{
"name": "vmware-iso-atlas",
"type": "vmware-iso",
"communicator": "winrm",
"iso_url": "{{user `iso_url`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"headless": true,
"boot_wait": "10m",
"boot_command": [ "{{user `product_key`}}<enter>" ],
"winrm_username": "vagrant",
"winrm_password": "vagrant",
"winrm_timeout": "6h",
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"guest_os_type": "windows8srv-64",
"disk_size": 61440,
"vnc_port_min": 5900,
"vnc_port_max": 5980,
"version": 11,
"floppy_files": [
"./answer_files/2016/Autounattend.xml",
"./floppy/Windows Powershell.lnk",
"./floppy/PinTo10.exe",
"./scripts/disable-winrm.ps1",
"./scripts/docker/enable-winrm.ps1",
"./scripts/microsoft-updates.bat",
"./scripts/win-updates.ps1"
],
"vmx_data": {
"RemoteDisplay.vnc.enabled": "false",
"RemoteDisplay.vnc.port": "5900",
"memsize": "2048",
"numvcpus": "2",
"scsi0.virtualDev": "lsisas1068"
}
},
{
"type": "virtualbox-iso",
"communicator": "winrm",
......@@ -156,16 +120,6 @@
"keep_input_artifact": false,
"output": "windows_2016_docker_{{.Provider}}.box",
"vagrantfile_template": "vagrantfile-windows_2016_docker.template"
},
{
"type": "atlas",
"only": ["vmware-iso-atlas"],
"artifact": "StefanScherer/windows_2016_docker",
"artifact_type": "vagrant.box",
"metadata": {
"provider": "vmware_desktop",
"version": "0.0.1"
}
}
],
"variables": {
......
{
"push": {
"name": "StefanScherer/windows_2016_docker"
},
"builders": [
{
"type": "vmware-iso",
"communicator": "winrm",
"iso_url": "{{user `iso_url`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"headless": true,
"boot_wait": "10m",
"boot_command": [ "{{user `product_key`}}<enter>" ],
"winrm_username": "vagrant",
"winrm_password": "vagrant",
"winrm_timeout": "6h",
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"guest_os_type": "windows8srv-64",
"disk_size": 61440,
"vnc_port_min": 5900,
"vnc_port_max": 5980,
"version": 11,
"floppy_files": [
"./answer_files/2016/Autounattend.xml",
"./floppy/Windows Powershell.lnk",
"./floppy/PinTo10.exe",
"./scripts/disable-winrm.ps1",
"./scripts/docker/enable-winrm.ps1",
"./scripts/microsoft-updates.bat",
"./scripts/win-updates.ps1"
],
"vmx_data": {
"RemoteDisplay.vnc.enabled": "false",
"RemoteDisplay.vnc.port": "5900",
"memsize": "2048",
"numvcpus": "2",
"scsi0.virtualDev": "lsisas1068"
}
}
],
"provisioners": [
{
"type": "windows-shell",
"execute_command": "{{ .Vars }} cmd /c \"{{ .Path }}\"",
"scripts": [
"./scripts/vm-guest-tools.bat",
"./scripts/enable-rdp.bat"
]
},
{
"type": "windows-restart"
},
{
"type": "windows-shell",
"execute_command": "{{ .Vars }} cmd /c \"{{ .Path }}\"",
"scripts": [
"./scripts/pin-powershell.bat",
"./scripts/uac-enable.bat"
]
},
{
"type": "powershell",
"scripts": [
"./scripts/install-docker.ps1",
"./scripts/enable-docker-unsecure.ps1"
]
},
{
"type": "windows-shell",
"scripts": [
"./scripts/set-winrm-automatic.bat",
"./scripts/uac-enable.bat",
"./scripts/compact.bat"
]
}
],
"post-processors": [
{
"type": "vagrant",
"keep_input_artifact": false,
"output": "windows_2016_docker_{{.Provider}}.box",
"vagrantfile_template": "vagrantfile-windows_2016_docker.template"
},
{
"type": "atlas",
"only": ["vmware-iso"],
"artifact": "StefanScherer/windows_2016_docker",
"artifact_type": "vagrant.box",
"metadata": {
"provider": "vmware_desktop",
"version": "0.0.1"
}
}
],
"variables": {
"iso_url": "https://aka.ms/tp4/serveriso",
"iso_checksum_type": "md5",
"iso_checksum": "935ba77651210bd1bd71a114c92b0caa",
"autounattend": "./answer_files/2016/Autounattend.xml",
"product_key": "<tab>"
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment