-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtemplate.json
executable file
·94 lines (94 loc) · 3.26 KB
/
template.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
{
"variables": {
"iso_url": "http://releases.ubuntu.com/14.04/ubuntu-14.04.3-server-i386.iso",
"iso_md5": "352009d5b44f0e97c9558919f0147c0c",
"version": "0.3-dev",
"name": "ubuntu-14.04-i386",
"ssh_user": "ghiro",
"ssh_pass": "ghiromanager",
"hostname": "ghiroappliance",
"vm_name": "Ghiro Appliance 0.3-dev"
},
"provisioners": [
{
"type": "shell",
"execute_command": "echo '{{user `ssh_pass`}}'|sudo -S bash '{{.Path}}'",
"override": {
"virtualbox-iso": {
"scripts": [
"scripts/base.sh",
"scripts/sudoers.sh",
"scripts/ghiro.sh",
"scripts/cleanup.sh",
"scripts/zerodisk.sh"
]
}
}
}
],
"post-processors": [
],
"builders": [
{
"type": "virtualbox-iso",
"vm_name": "{{user `vm_name`}}",
"format": "ova",
"export_opts": ["--vsys","0",
"--product","Ghiro",
"--producturl", "http://getghiro.org",
"--vendor", "Ghirensics",
"--vendorurl","http://getghiro.org",
"--version", "{{user `version`}}",
"--description", "Ghiro Appliance. Default credentials username: ghiro password: ghiromanager Remember to change the password at your first access."
],
"boot_command": [
"<esc><wait>",
"<esc><wait>",
"<enter><wait>",
"/install/vmlinuz<wait>",
" auto<wait>",
" console-setup/ask_detect=false<wait>",
" console-setup/layoutcode=us<wait>",
" console-setup/modelcode=pc105<wait>",
" debconf/frontend=noninteractive<wait>",
" debian-installer=en_US<wait>",
" fb=false<wait>",
" initrd=/install/initrd.gz<wait>",
" kbd-chooser/method=us<wait>",
" keyboard-configuration/layout=USA<wait>",
" keyboard-configuration/variant=USA<wait>",
" locale=en_US<wait>",
" netcfg/get_hostname={{user `hostname`}}<wait>",
" netcfg/get_domain=localdomain<wait>",
" noapic<wait>",
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg<wait>",
" -- <wait>",
"<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 40960,
"guest_os_type": "Ubuntu",
"guest_additions_mode": "disable",
"http_directory": "http",
"iso_checksum": "{{user `iso_md5`}}",
"iso_checksum_type": "md5",
"iso_url": "{{user `iso_url`}}",
"ssh_username": "{{user `ssh_user`}}",
"ssh_password": "{{user `ssh_pass`}}",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"shutdown_command": "echo 'shutdown -P now' > /tmp/shutdown.sh; echo '{{user `ssh_pass`}}'|sudo -S sh '/tmp/shutdown.sh'",
"hard_drive_interface": "sata",
"vboxmanage": [
[ "modifyvm", "{{.Name}}", "--memory", "1024" ],
[ "modifyvm", "{{.Name}}", "--cpus", "1" ],
[ "modifyvm", "{{.Name}}", "--vram", "16" ]
],
"vboxmanage_post": [
["modifyvm", "{{.Name}}", "--nic1", "bridged"],
["modifyvm", "{{.Name}}", "--bridgeadapter1", "eth0"],
[ "modifyvm", "{{.Name}}", "--memory", "1024" ]
]
}
]
}