-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.json
More file actions
85 lines (85 loc) · 2.21 KB
/
config.json
File metadata and controls
85 lines (85 loc) · 2.21 KB
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
75
76
77
78
79
80
81
82
83
84
85
{
"builders": [
{
"vm_name": "packer-win-server-2016-v2",
"type": "virtualbox-iso",
"guest_os_type": "Windows2016_64",
"guest_additions_mode": "attach",
"iso_url": "artifacts/iso/Windows_Server_2016_Datacenter_EVAL_en-us_14393_refresh.ISO",
"iso_checksum": "772700802951b36c8cb26a61c040b9a8dc3816a3",
"iso_checksum_type": "sha1",
"disk_size": 40000,
"hard_drive_discard": true,
"hard_drive_nonrotational": true,
"floppy_files": [
"scripts/Autounattend.xml"
],
"output_directory": "artifacts/virtualbox",
"headless": true,
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"shutdown_timeout": "30m",
"cpus": 4,
"memory": 4096,
"communicator": "winrm",
"winrm_username": "vagrant",
"winrm_password": "vagrant",
"virtualbox_version_file": "",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--vram",
"32"
],
[
"modifyvm",
"{{.Name}}",
"--clipboard",
"bidirectional"
]
],
"winrm_port": 5985,
"winrm_insecure": true,
"boot_wait": "2m"
}
],
"provisioners": [
{
"type": "powershell",
"script": "scripts/install-guest-additions.ps1",
"elevated_user": "vagrant",
"elevated_password": "vagrant"
},
{
"type": "powershell",
"script": "scripts/install-apps.ps1",
"elevated_user": "vagrant",
"elevated_password": "vagrant"
},
{
"type": "file",
"source": "ssh/sshd_config",
"destination": "C:\\ProgramData\\ssh\\sshd_config"
},
{
"type": "file",
"source": "ssh/authorized_keys",
"destination": "C:\\Users\\vagrant\\.ssh\\authorized_keys"
},
{
"type": "powershell",
"script": "scripts/start-sshd.ps1",
"elevated_user": "vagrant",
"elevated_password": "vagrant"
}
],
"post-processors": [
{
"type": "vagrant",
"keep_input_artifact": true,
"vagrantfile_template": "Vagrantfile.template",
"compression_level": 0,
"output": "artifacts/vagrant/windows-2016-vbox.box"
}
]
}