forked from xenserver/packer-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
windows_2008_r2_core.json
53 lines (51 loc) · 1.84 KB
/
windows_2008_r2_core.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"variables": {
"remote_host": "{{env `HOST`}}",
"remote_username": "{{env `USERNAME`}}",
"remote_password": "{{env `PASSWORD`}}",
"http_port_min": "{{env `HTTP_PORT`}}{{env `HTTP_PORT_MIN`}}",
"http_port_max": "{{env `HTTP_PORT`}}{{env `HTTP_PORT_MAX`}}"
},
"builders": [
{
"type": "xenserver-iso",
"remote_host": "{{user `remote_host`}}",
"remote_username": "{{user `remote_username`}}",
"remote_password": "{{user `remote_password`}}",
"http_port_min": "{{user `http_port_min`}}",
"http_port_max": "{{user `http_port_max`}}",
"vm_name": "packer-win2008",
"disk_size": 61440,
"iso_url": "http://download.microsoft.com/download/7/5/E/75EC4E54-5B02-42D6-8879-D8D3A25FBEF7/7601.17514.101119-1850_x64fre_server_eval_en-us-GRMSXEVAL_EN_DVD.iso",
"iso_checksum_type": "md5",
"iso_checksum": "4263be2cf3c59177c45085c0a7bc6ca5",
"http_directory": "http",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_wait_timeout": "2h",
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"clone_template": "Windows Server 2008 (64-bit)",
"floppy_files": [
"./floppy/2008_r2_core/Autounattend.xml",
"./scripts/windows/microsoft-updates.bat",
"./scripts/windows/win-updates.ps1",
"./scripts/windows/openssh.ps1",
"./scripts/windows/http-get.ps1"
],
"boot_wait": "10s"
}
],
"provisioners": [
{
"type": "shell",
"remote_path": "/tmp/script.bat",
"execute_command": "{{.Vars}} cmd /c C:/Windows/Temp/script.bat",
"scripts": [
"./scripts/windows/install-tools.bat",
"./scripts/windows/enable-rdp.bat",
"./scripts/windows/disable-auto-logon.bat",
"./scripts/windows/compact.bat"
]
}
]
}