-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdirtbox.json
93 lines (93 loc) · 2.49 KB
/
dirtbox.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": [
{
"boot_command": [
"root<enter><wait>",
"ifconfig eth0 up && udhcpc -i eth0<enter><wait10>",
"wget http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `answers_file`}}<enter><wait>",
"setup-alpine -f $PWD/{{user `answers_file`}}<enter><wait5>",
"vagrant<enter><wait>",
"vagrant<enter><wait>",
"<wait30s>",
"y<enter>",
"<wait60s>",
"rc-service sshd stop<enter>",
"mount /dev/sda3 /mnt<enter>",
"echo 'PermitRootLogin yes' >> /mnt/etc/ssh/sshd_config<enter>",
"umount /mnt<enter>",
"reboot<enter>"
],
"boot_wait": "30s",
"communicator": "ssh",
"disk_size": "{{user `disk_size`}}",
"guest_additions_mode": "disable",
"guest_os_type": "Linux26_64",
"hard_drive_interface": "sata",
"headless": false,
"http_directory": "http",
"iso_checksum_type": "sha512",
"iso_checksum_url": "http://dl-cdn.alpinelinux.org/alpine/v{{user `series`}}/releases/x86_64/alpine-virt-{{user `release`}}-x86_64.iso.sha512",
"iso_urls": [
"http://dl-cdn.alpinelinux.org/alpine/v{{user `series`}}/releases/x86_64/alpine-virt-{{user `release`}}-x86_64.iso"
],
"shutdown_command": "/sbin/poweroff",
"ssh_password": "vagrant",
"ssh_username": "root",
"ssh_wait_timeout": "10m",
"type": "virtualbox-iso",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
"{{user `memory`}}"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"{{user `cpus`}}"
]
],
"virtualbox_version_file": ".vbox_version"
}
],
"post-processors": [
{
"include": [
"Vagrantsettings.yaml"
],
"output": "dirtbox.box",
"type": "vagrant",
"vagrantfile_template": "Vagrantfile"
}
],
"provisioners": [
{
"override": {
"virtualbox-iso": {
"execute_command": "/bin/sh '{{.Path}}'"
}
},
"scripts": [
"scripts/base.sh",
"scripts/update.sh",
"scripts/sshd.sh",
"scripts/vagrant.sh",
"scripts/sudo.sh",
"scripts/virtualbox.sh",
"scripts/install.sh",
"scripts/minimize.sh"
],
"type": "shell"
}
],
"variables": {
"answers_file": "alpine.conf",
"cpus": "1",
"disk_size": "1024",
"memory": "256",
"release": "3.7.1",
"series": "3.7"
}
}