-
Notifications
You must be signed in to change notification settings - Fork 11
/
vb-win2012r2-export-vagrant.json
74 lines (74 loc) · 1.88 KB
/
vb-win2012r2-export-vagrant.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
66
67
68
69
70
71
72
73
74
{
"variables": {
"os_name": "win2012r2",
"image_name": "wmf5-dev-clean",
"vagrant_box_version": "0.2.1",
"source_path": "./output-win2012r2-wmf5-devtools/win2012r2-wmf5-devtools.ovf",
"headless": "true"
},
"builders": [
{
"type": "virtualbox-ovf",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
"2048"
],
[
"modifyvm",
"{{.Name}}",
"--vram",
"48"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"2"
]
],
"source_path": "{{user `source_path`}}",
"vm_name": "{{ user `os_name` }}-{{ user `image_name` }}-{{ user `vagrant_box_version` }}",
"guest_additions_mode": "disable",
"headless": "{{ user `headless` }}",
"communicator": "winrm",
"winrm_username": "vagrant",
"winrm_password": "vagrant",
"winrm_timeout": "8h",
"shutdown_command": "a:/PackerShutdown.bat",
"shutdown_timeout": "15m",
"output_directory": "./output-{{ user `os_name` }}-{{ user `image_name` }}/",
"floppy_files": [
"Scripts/UK-postunattend.xml",
"Scripts/SetupComplete-2012.cmd",
"Scripts/PackerShutdown.bat"
]
}
],
"provisioners": [
{
"type": "powershell",
"elevated_password": "vagrant",
"elevated_user": "vagrant",
"script": "scripts/cleanup.ps1"
},
{
"type": "powershell",
"elevated_user": "vagrant",
"elevated_password": "vagrant",
"script": "Scripts/Set-Sysprep.ps1"
}
],
"post-processors": [
[
{
"type": "vagrant",
"keep_input_artifact": true,
"output": "./output-{{ user `os_name` }}-{{ user `image_name` }}/Win2012R2-Std-WMF5-Dev.box",
"vagrantfile_template": "windows-template.vagrantfile"
}
]
]
}