-
Notifications
You must be signed in to change notification settings - Fork 0
/
04-cleanup.json
53 lines (53 loc) · 1.27 KB
/
04-cleanup.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": {
"headless": "true",
"image_name": "cleanup",
"os_name": "",
"source_path": ""
},
"builders": [
{
"communicator": "winrm",
"guest_additions_mode": "disable",
"guest_additions_path": "C:/users/vagrant/VBoxGuestAdditions.iso",
"headless": "{{ user `headless` }}",
"output_directory": "./output-{{ user `os_name` }}-{{ user `image_name` }}/",
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"shutdown_timeout": "1h",
"source_path": "{{user `source_path`}}",
"type": "virtualbox-ovf",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
"2048"
],
[
"modifyvm",
"{{.Name}}",
"--vram",
"48"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"2"
]
],
"vm_name": "{{ user `os_name` }}-{{ user `image_name` }}",
"winrm_password": "vagrant",
"winrm_timeout": "12h",
"winrm_username": "vagrant"
}
],
"provisioners": [
{
"elevated_password": "vagrant",
"elevated_user": "vagrant",
"script": "scripts/clean_and_scrub.ps1",
"type": "powershell"
}
]
}