-
Notifications
You must be signed in to change notification settings - Fork 93
/
hyperv-pfsense-2.4.3.json
93 lines (89 loc) · 2.94 KB
/
hyperv-pfsense-2.4.3.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
{
"variables": {
"vm_name": "pfsense",
"cpu": "2",
"ram_size": "2048",
"disk_size": "21440",
"iso_url": "pfSense-CE-2.4.3-RELEASE-amd64.iso",
"iso_checksum_type": "sha1",
"iso_checksum": "582160dc3e4b3b7b8de90fd1c7cb1247219505ae",
"hyperv_switchname": "{{env `hyperv_switchname`}}",
"username" : "vagrant",
"password" : "vagrant"
},
"builders": [
{
"vm_name":"{{user `vm_name`}}",
"type": "hyperv-iso",
"disk_size": "{{user `disk_size`}}",
"floppy_files": [],
"secondary_iso_images": [
],
"guest_additions_mode":"disable",
"iso_url": "{{user `iso_url`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"communicator":"ssh",
"ssh_username": "{{user `username`}}",
"ssh_password": "{{user `password`}}",
"ssh_timeout" : "4h",
"http_directory": "./pfsense/http/",
"boot_wait": "1s",
"boot_command": [
"<wait><wait><wait>0<enter><wait><wait>",
"1",
"<wait10><wait10><wait10><wait10>",
"A<wait><wait>",
"<enter><wait><wait>",
"<enter><wait><wait>",
"<enter><wait10><wait10><wait10><wait10><wait10><wait10>",
"Y<wait><wait><wait>",
"cdcontrol eject<wait><enter><wait><wait>",
"shutdown -r now<wait><enter><wait10><wait10><wait10><wait10><wait10>",
"<wait5>n<wait><enter><wait>",
"<wait>hn0<wait><enter><wait>",
"<wait><enter><wait>",
"<wait>y<wait><enter>",
"<wait10><wait10><wait10><wait10>",
"<wait>8<enter>",
"<wait>rehash<wait><enter>",
"<wait>pw usermod root -h 0<wait><enter>",
"<wait>vagrant<wait><enter>",
"<wait>pw adduser vagrant -m -s /usr/local/bin/bash<wait><enter>",
"<wait>pw usermod vagrant -h 0<wait><enter>",
"<wait>vagrant<wait><enter>",
"<wait>pw group mod wheel -m vagrant<wait><enter>",
"<wait>echo '%wheel ALL=(ALL) NOPASSWD: ALL' >> /usr/local/etc/sudoers<wait><enter>",
"<wait>chmod 0440 /usr/local/etc/sudoers<wait><enter>",
"<wait>cd /tmp<wait><enter>",
"<wait>pkg update<enter><wait10><wait10><wait10>",
"<wait>pkg install -y sudo bash curl<wait><enter><wait10><wait10><wait10>",
"<wait>exit<wait><enter><wait5>",
"<wait>14<enter>",
"<wait>y<enter>",
"<wait>5<enter>",
"<wait>y<enter><wait10>"
],
"shutdown_command": "echo 'vagrant'|sudo -S shutdown -p now",
"ram_size": "{{user `ram_size`}}",
"cpu": "{{user `cpu`}}",
"generation": 1,
"switch_name":"{{user `hyperv_switchname`}}",
"enable_secure_boot":false
}],
"provisioners": [{
"type": "shell",
"execute_command": "echo 'vagrant'|sudo -S bash '{{.Path}}'",
"scripts": [
"./pfsense/common/vagrant.sh",
"./pfsense/common/chef.sh"
]
}],
"post-processors": [
{
"type": "vagrant",
"keep_input_artifact": true,
"output": "{{.Provider}}_pfsense-2.4.3_chef.box"
}
]
}