This repository has been archived by the owner on Jan 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
pfsense.json
159 lines (158 loc) · 5.08 KB
/
pfsense.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
{
"builders": [
{
"type": "virtualbox-iso",
"http_directory": "http",
"http_port_min": "8100",
"boot_wait": "7s",
"boot_command": [
"<wait>1",
"<wait10><wait><wait>I",
"<wait5><tab><tab><tab><wait><enter>",
"<wait><enter>",
"<wait5><enter>",
"<wait10><wait5><enter>",
"<wait5><wait><enter>",
"<wait10><wait10><wait10><wait10><wait10>",
"<wait>n<enter><wait>",
"<wait>em0<enter><wait>",
"<wait><enter><wait>",
"<wait>y<enter>",
"<wait10><wait5>",
"14<enter>",
"<wait>y<enter>",
"<wait>8<enter>",
"<wait>pkg_add -r sudo<wait><enter><wait5>",
"<wait>pkg_add -r bash<wait><enter><wait5>",
"<wait>pkg_add -r ruby<enter><wait10><wait10><wait10>",
"<wait>pkg_add -r rubygem-chef-server<wait><enter>",
"<wait10><wait10><wait10><wait10><wait10><wait10><wait10><wait10><wait10><wait10><wait10><wait10><wait10>",
"<wait10><wait10><wait10><wait10><wait10><wait10><wait10><wait10><wait10><wait10><wait10><wait10><wait10>",
"<wait>pkg_add -r virtualbox-ose-additions<wait><enter>",
"<wait10><wait10><wait10><wait10><wait10><wait10><wait10>",
"<wait>rehash<enter>",
"<wait>pw usermod root -h 0<wait><enter>",
"<wait>vagrant<enter>",
"<wait>pw adduser vagrant -m -s /usr/local/bin/bash<enter>",
"<wait>pw usermod vagrant -h 0<enter>",
"<wait>vagrant<enter>",
"<wait>pw group mod wheel -m vagrant<enter>",
"<wait>echo '%wheel ALL=(ALL) NOPASSWD: ALL' >> /usr/local/etc/sudoers<enter>",
"<wait>chmod 0440 /usr/local/etc/sudoers<wait><enter>",
"<wait5>reboot<enter>"
],
"disk_size": 8192,
"guest_additions_mode": "disable",
"guest_os_type": "FreeBSD",
"iso_checksum": "790eb783c175d90109837361c8f78111",
"iso_checksum_type": "md5",
"iso_urls": [ "http://box.hackeracademy.com/pfSense-LiveCD-2.1.4-RELEASE-i386.iso" ],
"shutdown_command": "sudo shutdown -p now",
"ssh_port": 22,
"ssh_password": "vagrant",
"ssh_username": "vagrant",
"ssh_wait_timeout": "10000s",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
"512"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"1"
],
[
"modifyvm",
"{{.Name}}",
"--nic2",
"intnet"
]
],
"virtualbox_version_file": ".vbox_version",
"vm_name": "pfSense"
},
{
"type": "vmware-iso",
"http_directory": "http",
"http_port_min": "8100",
"boot_wait": "10s",
"boot_command": [
"<wait>1",
"<wait10><wait10><wait10>I",
"<wait10><wait10><tab><tab><tab><wait><enter>",
"<wait><enter>",
"<wait5><enter>",
"<wait10><wait5><enter>",
"<wait5><wait><enter>",
"<wait10><wait10><wait10><wait10><wait10><wait10><wait10>",
"<wait>n<enter><wait>",
"<wait>em0<enter><wait>",
"<wait><enter><wait>",
"<wait>y<enter>",
"<wait10><wait5>",
"14<enter>",
"<wait>y<enter>",
"<wait>8<enter>",
"<wait>pkg_add -r sudo<wait><enter><wait5>",
"<wait>pkg_add -r bash<wait><enter><wait5>",
"<wait>rehash<enter>",
"<wait>pw usermod root -h 0<wait><enter>",
"<wait>vagrant<enter>",
"<wait>pw adduser vagrant -m -s /usr/local/bin/bash<enter>",
"<wait>pw usermod vagrant -h 0<enter>",
"<wait>vagrant<enter>",
"<wait>pw group mod wheel -m vagrant<enter>",
"<wait>echo '%wheel ALL=(ALL) NOPASSWD: ALL' >> /usr/local/etc/sudoers<enter>",
"<wait>chmod 0440 /usr/local/etc/sudoers<wait><enter>",
"<wait5>reboot<enter>"
],
"disk_size": 8192,
"guest_os_type": "freeBSD",
"iso_checksum": "790eb783c175d90109837361c8f78111",
"iso_checksum_type": "md5",
"iso_urls": [ "http://box.hackeracademy.com/pfSense-LiveCD-2.1.4-RELEASE-i386.iso" ],
"shutdown_command": "sudo shutdown -p now",
"ssh_port": 22,
"tools_upload_flavor": "freebsd",
"ssh_password": "vagrant",
"ssh_username": "vagrant",
"ssh_wait_timeout": "10000s",
"vm_name": "pfSense",
"vmx_data": {
"ethernet0.present": "TRUE",
"ethernet1.present": "TRUE",
"memsize": "512",
"numvcpus": "1"
}
}
],
"provisioners": [
{
"type": "file",
"source": "http/",
"destination": "/home/vagrant"
},
{
"type": "shell",
"execute_command": "echo 'vagrant'|sudo -S bash '{{.Path}}'",
"pause_before": "5s",
"scripts": [
"scripts/config.sh",
"scripts/chef.sh",
"scripts/vmtools.sh",
"scripts/vagrant.sh"
]
}
],
"post-processors": [
{
"type": "vagrant",
"output" : "pfSense_{{.Provider}}_{{isotime}}.box",
"keep_input_artifact": true
}
]
}