-
Notifications
You must be signed in to change notification settings - Fork 264
/
win2012-standard-cygwin.json
198 lines (198 loc) · 7.24 KB
/
win2012-standard-cygwin.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
{
"builders": [
{
"type": "vmware-iso",
"iso_url": "{{ user `iso_url` }}",
"iso_checksum": "{{ user `iso_checksum` }}",
"floppy_files": [
"{{template_dir}}/floppy/win2012-standard/Autounattend.xml",
"{{template_dir}}/floppy/00-run-all-scripts.cmd",
"{{template_dir}}/floppy/01-install-wget.cmd",
"{{template_dir}}/floppy/_download.cmd",
"{{template_dir}}/floppy/_packer_config*.cmd",
"{{template_dir}}/floppy/cygwin.bat",
"{{template_dir}}/floppy/cygwin.sh",
"{{template_dir}}/floppy/hotfix-KB2842230.bat",
"{{template_dir}}/floppy/install-winrm.cmd",
"{{template_dir}}/floppy/passwordchange.bat",
"{{template_dir}}/floppy/powerconfig.bat",
"{{template_dir}}/floppy/unzip.vbs",
"{{template_dir}}/floppy/zz-start-transports.cmd",
"{{template_dir}}/3rdparty/curl.exe"
],
"shutdown_command": "{{ user `shutdown_command`}}",
"guest_os_type": "windows8srv-64",
"headless": "{{ user `headless` }}",
"tools_upload_flavor": "windows",
"version": "{{ user `hw_version` }}",
"cpus": "{{ user `cpus` }}",
"cores": 1,
"memory": "{{ user `memory` }}",
"disk_size": "{{user `disk_size`}}",
"vm_name": "{{user `vm_name`}}",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_timeout": "10000s"
},
{
"type": "virtualbox-iso",
"iso_url": "{{ user `iso_url` }}",
"iso_checksum": "{{ user `iso_checksum` }}",
"floppy_files": [
"{{template_dir}}/floppy/win2012-standard/Autounattend.xml",
"{{template_dir}}/floppy/00-run-all-scripts.cmd",
"{{template_dir}}/floppy/01-install-wget.cmd",
"{{template_dir}}/floppy/_download.cmd",
"{{template_dir}}/floppy/_packer_config*.cmd",
"{{template_dir}}/floppy/cygwin.bat",
"{{template_dir}}/floppy/cygwin.sh",
"{{template_dir}}/floppy/hotfix-KB2842230.bat",
"{{template_dir}}/floppy/install-winrm.cmd",
"{{template_dir}}/floppy/passwordchange.bat",
"{{template_dir}}/floppy/powerconfig.bat",
"{{template_dir}}/floppy/unzip.vbs",
"{{template_dir}}/floppy/zz-start-transports.cmd",
"{{template_dir}}/3rdparty/curl.exe"
],
"shutdown_command": "{{ user `shutdown_command`}}",
"guest_additions_mode": "attach",
"guest_additions_url": "{{user `guest_additions_url`}}",
"guest_os_type": "Windows2012_64",
"headless": "{{ user `headless` }}",
"post_shutdown_delay": "30s",
"cpus": "{{ user `cpus` }}",
"memory": "{{ user `memory` }}",
"disk_size": "{{user `disk_size`}}",
"hard_drive_interface": "sata",
"vm_name": "{{user `vm_name`}}",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_timeout": "10000s"
},
{
"type": "parallels-iso",
"iso_url": "{{ user `iso_url` }}",
"iso_checksum": "{{ user `iso_checksum` }}",
"floppy_files": [
"{{template_dir}}/floppy/win2012-standard/Autounattend.xml",
"{{template_dir}}/floppy/00-run-all-scripts.cmd",
"{{template_dir}}/floppy/01-install-wget.cmd",
"{{template_dir}}/floppy/_download.cmd",
"{{template_dir}}/floppy/_packer_config*.cmd",
"{{template_dir}}/floppy/cygwin.bat",
"{{template_dir}}/floppy/cygwin.sh",
"{{template_dir}}/floppy/hotfix-KB2842230.bat",
"{{template_dir}}/floppy/install-winrm.cmd",
"{{template_dir}}/floppy/passwordchange.bat",
"{{template_dir}}/floppy/powerconfig.bat",
"{{template_dir}}/floppy/unzip.vbs",
"{{template_dir}}/floppy/zz-start-transports.cmd",
"{{template_dir}}/3rdparty/curl.exe"
],
"shutdown_command": "{{ user `shutdown_command`}}",
"guest_os_type": "win-2012",
"parallels_tools_flavor": "win",
"cpus": "{{ user `cpus` }}",
"memory": "{{ user `memory` }}",
"disk_size": "{{user `disk_size`}}",
"prlctl": [
[
"set",
"{{.Name}}",
"--efi-boot",
"off"
]
],
"vm_name": "{{user `vm_name`}}",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_timeout": "10000s"
},
{
"type": "hyperv-iso",
"iso_url": "{{ user `iso_url` }}",
"iso_checksum": "{{ user `iso_checksum` }}",
"floppy_files": [
"{{template_dir}}/floppy/win2012-standard/Autounattend.xml",
"{{template_dir}}/floppy/00-run-all-scripts.cmd",
"{{template_dir}}/floppy/01-install-wget.cmd",
"{{template_dir}}/floppy/_download.cmd",
"{{template_dir}}/floppy/_packer_config*.cmd",
"{{template_dir}}/floppy/cygwin.bat",
"{{template_dir}}/floppy/cygwin.sh",
"{{template_dir}}/floppy/hotfix-KB2842230.bat",
"{{template_dir}}/floppy/install-winrm.cmd",
"{{template_dir}}/floppy/passwordchange.bat",
"{{template_dir}}/floppy/powerconfig.bat",
"{{template_dir}}/floppy/unzip.vbs",
"{{template_dir}}/floppy/zz-start-transports.cmd",
"{{template_dir}}/3rdparty/curl.exe"
],
"shutdown_command": "{{ user `shutdown_command`}}",
"headless": "{{ user `headless` }}",
"cpus": "{{ user `cpus` }}",
"memory": "{{ user `memory` }}",
"disk_size": "{{user `disk_size`}}",
"vm_name": "{{user `vm_name`}}",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_timeout": "10000s"
}
],
"post-processors": [
{
"compression_level": 1,
"keep_input_artifact": false,
"output": "{{user `box_directory`}}{{.Provider}}/{{user `vm_name`}}{{user `vm_suffix`}}-{{user `cm`}}{{user `cm_version`}}-{{user `version`}}.box",
"type": "vagrant",
"vagrantfile_template": "{{template_dir}}/tpl/vagrantfile-win2012-standard-cygwin.tpl"
}
],
"provisioners": [
{
"environment_vars": [
"CM={{user `cm`}}",
"CM_OPTIONS={{user `cm_options`}}",
"CM_VERSION={{user `cm_version`}}",
"UPDATE={{user `update`}}"
],
"execute_command": "{{.Vars}} cmd /c $(/bin/cygpath -m '{{.Path}}')",
"remote_path": "C:/Windows/Temp/script.bat",
"scripts": [
"{{template_dir}}/script/vagrant.bat",
"{{template_dir}}/script/KB2999226.cmd",
"{{template_dir}}/script/cmtool.bat",
"{{template_dir}}/script/vmtool.bat",
"{{template_dir}}/script/clean.bat",
"{{template_dir}}/script/ultradefrag.bat",
"{{template_dir}}/script/uninstall-7zip.bat",
"{{template_dir}}/script/sdelete.bat"
],
"type": "shell"
},
{
"inline": [
"rm -f /cygdrive/c/Windows/Temp/script.bat"
],
"type": "shell"
}
],
"variables": {
"vm_name": "win2012-standard",
"vm_suffix": "-cygwin",
"cm": "chef",
"cm_version": "",
"cpus": "2",
"memory": "2048",
"disk_size": "40960",
"hw_version": "7",
"iso_url": "iso/en_windows_server_2012_x64_dvd_915478.iso",
"iso_checksum": "d09e752b1ee480bc7e93dfa7d5c3a9b8aac477ba",
"guest_additions_url": "",
"box_directory": "box/",
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c Packer_Shutdown",
"headless": "false",
"update": "true",
"version": "0.1.0"
}
}