forked from mwrock/packer-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hyperv-2016.json
93 lines (92 loc) · 2.72 KB
/
hyperv-2016.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
{
"builders": [
{
"communicator": "winrm",
"floppy_files": [
"answer_files/2016/Autounattend.xml",
"scripts/winrm.ps1"
],
"guest_additions_mode": "disable",
"iso_checksum": "md5:{{ user `iso_checksum` }}",
"iso_url": "{{ user `iso_url` }}",
"memory": 2048,
"shutdown_command": "C:/Windows/Panther/Unattend/packer_shutdown.bat",
"shutdown_timeout": "15m",
"switch_name": "internal_switch",
"type": "hyperv-iso",
"vm_name": "2016min",
"winrm_password": "vagrant",
"winrm_timeout": "12h",
"winrm_username": "vagrant"
}
],
"post-processors": [
{
"keep_input_artifact": true,
"output": "windows2016min-{{.Provider}}.box",
"type": "vagrant",
"vagrantfile_template": "vagrantfile-windows.template"
}
],
"provisioners": [
{
"cookbook_paths": [
"cookbooks",
"vendor/cookbooks"
],
"guest_os_type": "windows",
"run_list": [
"wsus-client::configure",
"packer-templates::uninstall_powershell_ise",
"packer-templates::install_ps_modules",
"packer-templates::delete_pagefile"
],
"type": "chef-solo"
},
{
"elevated_password": "vagrant",
"elevated_user": "vagrant",
"script": "scripts/windows-updates.ps1",
"type": "powershell"
},
{
"restart_timeout": "15m",
"type": "windows-restart"
},
{
"elevated_password": "vagrant",
"elevated_user": "vagrant",
"script": "scripts/after-reboot.ps1",
"type": "powershell"
},
{
"guest_os_type": "windows",
"remote_cookbook_paths": [
"c:/windows/temp/packer-chef-solo/cookbooks-0",
"c:/windows/temp/packer-chef-solo/cookbooks-1"
],
"run_list": [
"packer-templates::enable_file_sharing",
"packer-templates::remote_desktop",
"packer-templates::clean_sxs",
"packer-templates::add_postunattend",
"packer-templates::add_pagefile",
"packer-templates::set_local_account_token_filter_policy",
"packer-templates::remove_dirs",
"packer-templates::add_setup_complete"
],
"skip_install": "true",
"type": "chef-solo"
},
{
"elevated_password": "vagrant",
"elevated_user": "vagrant",
"script": "scripts/cleanup.ps1",
"type": "powershell"
}
],
"variables": {
"iso_checksum": "18a4f00a675b0338f3c7c93c4f131beb",
"iso_url": "http://care.dlservice.microsoft.com/dl/download/1/6/F/16FA20E6-4662-482A-920B-1A45CF5AAE3C/14393.0.160715-1616.RS1_RELEASE_SERVER_EVAL_X64FRE_EN-US.ISO"
}
}