forked from chef/bento
-
Notifications
You must be signed in to change notification settings - Fork 0
/
2012r2.json
65 lines (65 loc) · 1.94 KB
/
2012r2.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
54
55
56
57
58
59
60
61
62
63
64
65
{
"builders": [{
"type": "virtualbox-iso",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "4096"],
["modifyvm", "{{.Name}}", "--vram", "48"],
["modifyvm", "{{.Name}}", "--cpus", "2"]
],
"guest_additions_mode": "{{ user `guest_additions_mode` }}",
"guest_additions_path": "C:/users/vagrant/VBoxGuestAdditions.iso",
"guest_os_type": "Windows2012_64",
"headless": "{{ user `headless` }}",
"iso_url": "{{ user `iso_url` }}",
"iso_checksum": "{{ user `iso_checksum` }}",
"iso_checksum_type": "sha1",
"output_directory": "../builds/packer-{{user `template`}}-virtualbox",
"communicator": "winrm",
"winrm_username": "vagrant",
"winrm_password": "vagrant",
"winrm_timeout": "12h",
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"shutdown_timeout": "15m",
"floppy_files": [
"answer_files/2012_r2/Autounattend.xml"
]
}],
"provisioners": [{
"type": "chef-solo",
"cookbook_paths": ["cookbooks"],
"guest_os_type": "windows",
"run_list": [
"packer::disable_uac",
"packer::vm_tools",
"packer::features",
"packer::enable_file_sharing",
"packer::enable_remote_desktop",
"packer::ui_tweaks",
"packer::power",
"packer::cleanup",
"packer::defrag"
]
},
{
"type": "powershell",
"script": "scripts/cleanup.ps1",
"elevated_user": "vagrant",
"elevated_password": "vagrant"
}
],
"post-processors": [
[{
"type": "vagrant",
"keep_input_artifact": true,
"output": "{{ user `template` }}-{{.Provider}}.box",
"vagrantfile_template": "vagrantfile-windows.template"
}]
],
"variables": {
"guest_additions_mode": "attach",
"headless": "false",
"iso_checksum": "849734f37346385dac2c101e4aacba4626bb141c",
"iso_url": "http://download.microsoft.com/download/6/2/A/62A76ABB-9990-4EFC-A4FE-C7D698DAEB96/9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_SERVER_EVAL_EN-US-IR3_SSS_X64FREE_EN-US_DV9.ISO",
"template": "windows-2012r2-standard"
}
}