-
Notifications
You must be signed in to change notification settings - Fork 1
/
net_dev.json
197 lines (195 loc) · 7.11 KB
/
net_dev.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
{
"variables": {
"windows_iso_filename": "en_windows_8.1_professional_vl_with_update_x64_dvd_4065194.iso",
"visual_studio_iso_filename" : "en_visual_studio_professional_2013_with_update_2_x86_dvd_4238045.iso",
"reshaper_install_filename": "ReSharperSetup.8.2.0.2160.msi",
"git_installer_filename": "Git-1.9.4-preview20140611.exe"
},
"builders": [
{
"type": "vmware-iso",
"iso_url": "./iso/{{user `windows_iso_filename`}}",
"iso_checksum_type": "md5",
"iso_checksum": "9b2bf609db207af3817167d8a6b87e62",
"headless": false,
"boot_wait": "2m",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_wait_timeout": "2h",
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"guest_os_type": "windows8srv-64",
"tools_upload_flavor": "windows",
"disk_size": 61440,
"vnc_port_min": 5900,
"vnc_port_max": 5980,
"floppy_files": [
"./answer_files/81/Autounattend.xml",
"./scripts/win-updates.ps1",
"./scripts/openssh.ps1",
"./scripts/oracle-cert.cer",
"./answer_files/vs/AdminDeployment.xml"
],
"vmx_data": {
"RemoteDisplay.vnc.enabled": "false",
"RemoteDisplay.vnc.port": "5900",
"memsize": "2048",
"numvcpus": "1",
"scsi0.virtualDev": "lsisas1068",
"virtualhw.version": "10",
"gui.fullScreenAtPowerOn": "FALSE",
"gui.viewModeAtPowerOn": "windowed",
"gui.lastPoweredViewMode": "windowed",
"gui.fitGuestUsingNativeDisplayResolution": "TRUE",
"gui.applyHostDisplayScalingToGuest": "FALSE"
}
},
{
"name": "virtualbox",
"type": "virtualbox-iso",
"guest_os_type": "Windows81_64",
"iso_url": "./iso/{{user `windows_iso_filename`}}",
"iso_checksum": "9b2bf609db207af3817167d8a6b87e62",
"iso_checksum_type": "md5",
"headless": false,
"boot_wait": "2m",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_wait_timeout": "2h",
"shutdown_command": "shutdown /s /t 5 /f /d p:4:1 /c \"Packer Shutdown\"",
"disk_size": 61440,
"floppy_files": [
"./answer_files/81/Autounattend.xml",
"./scripts/win-updates.ps1",
"./scripts/openssh.ps1",
"./scripts/oracle-cert.cer",
"./answer_files/vs/AdminDeployment.xml"
],
"vboxmanage": [
[ "modifyvm", "{{.Name}}", "--memory", "2048" ],
[ "modifyvm", "{{.Name}}", "--cpus", "1" ],
[ "modifyvm", "{{.Name}}", "--vram", "32" ],
["setextradata", "{{.Name}}", "VBoxInternal/CPUM/CMPXCHG16B", "1"],
["setextradata", "global", "GUI/SuppressMessages", "all" ]
]
}
],
"provisioners": [
{
"type": "shell",
"remote_path": "/tmp/script.bat",
"execute_command": "{{.Vars}} cmd /c C:/Windows/Temp/script.bat",
"scripts": [
"./scripts/vm-guest-tools.bat",
"./scripts/vagrant-ssh.bat",
"./scripts/dpi.bat",
"./scripts/NoStupidHelp.bat"
]
},
{
"type": "file",
"source": "./iso/{{user `visual_studio_iso_filename`}}",
"destination": "visual_studio.iso"
},
{
"type": "file",
"source": "./iso/{{user `reshaper_install_filename`}}",
"destination": "{{user `reshaper_install_filename`}}"
},
{
"type": "file",
"source": "./iso/HideMenu.vsix",
"destination": "HideMenu.vsix"
},
{
"type": "file",
"source": "./iso/SourceCodePro_FontsOnly-1.017.zip",
"destination": "SourceCodePro_FontsOnly-1.017.zip"
},
{
"type": "file",
"source": "./iso/{{user `git_installer_filename`}}",
"destination": "git-setup.exe"
},
{
"type": "file",
"source": "./iso/ConEmuSetup.140602.exe",
"destination": "ConEmuSetup.140602.exe"
},
{
"type": "file",
"source": "./configs/insane.vssettings",
"destination": "insane.vssettings"
},
{
"type": "file",
"source": "./configs/ConEmu.reg",
"destination": "ConEmu.reg"
},
{
"type": "file",
"source": "./configs/vsActionManager.DotSettings",
"destination": "vsActionManager.DotSettings"
},
{
"type": "file",
"source": "./configs/master_preferences",
"destination": "/tmp/master_preferences"
},
{
"type": "file",
"source": "./configs/notepad2",
"destination": "/tmp/"
},
{
"type": "shell",
"remote_path": "/tmp/fonts.ps1",
"script": "scripts/fonts.ps1",
"execute_command": "cmd.exe /c C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe -File c:/windows/temp/fonts.ps1"
},
{
"type": "shell",
"remote_path": "/tmp/git.ps1",
"script": "scripts/git.ps1",
"execute_command": "cmd.exe /c C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe -File c:/windows/temp/git.ps1"
},
{
"type": "shell",
"remote_path": "/tmp/conemu.ps1",
"script": "scripts/conemu.ps1",
"execute_command": "cmd.exe /c C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe -File c:/windows/temp/conemu.ps1"
},
{
"type": "shell",
"remote_path": "/tmp/script.bat",
"execute_command": "{{.Vars}} cmd /c C:/Windows/Temp/script.bat",
"scripts": [
"./scripts/chrome-enterprise.bat",
"./scripts/notepad2.bat"
]
},
{
"type": "shell",
"remote_path": "/tmp/vs2013.ps1",
"script": "scripts/vs2013.ps1",
"execute_command": "cmd.exe /c C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe -File c:/windows/temp/vs2013.ps1"
},
{
"type": "shell",
"remote_path": "/tmp/win-updates.ps1",
"script": "scripts/win-updates.ps1",
"execute_command": "powershell -File c:/windows/temp/win-updates.ps1"
},
{
"type": "shell", "inline": ["rm -rf /tmp/*"]
}
],
"post-processors": [
{
"type": "vagrant",
"keep_input_artifact": false,
"compression_level": "9",
"output": "net_dev_{{.Provider}}.box",
"vagrantfile_template": "vagrantfile-net_dev.template"
}
]
}