-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdragonfly46-hammer.json
60 lines (56 loc) · 1.98 KB
/
dragonfly46-hammer.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
{
"builders": [
{
"type": "virtualbox-iso",
"guest_os_type": "FreeBSD_64",
"iso_url": "http://mirrors.nycbug.org/pub/DragonflyBSD/iso-images/dfly-x86_64-4.6.1_REL.iso",
"iso_checksum": "76d0645df3c933275722f45c21e4d5cf",
"iso_checksum_type": "md5",
"boot_command": [
"1",
"<wait10><wait10><wait10>",
"installer<enter>",
"<wait5>",
"<enter><enter><wait><enter><enter><enter><wait><enter>",
"<enter><down><down><down><down><down><enter><enter><wait10><wait10><wait10><wait10>",
"<enter><wait10><wait10><wait10><wait10><wait5>",
"<down><enter><wait><enter>",
"<enter><wait>",
"<down><down><down><enter>vagrant<down>vagrant<down><enter><enter>",
"<down><down><down><down><enter>vagrant<down>Vagrant User<down>vagrant<down>vagrant",
"<down><down><down><down><down><down><left><enter><enter>",
"<down><down><down><down><down><enter><wait><enter><enter><wait5><enter>",
"<down><down><down><down><down><down><down><down><down><down><enter><wait>",
"<down><right><enter><wait5>root<enter><wait>",
"mount /dev/ad0s1d /mnt<enter>",
"sed -i -e 's/^PermitRootLogin without-password/PermitRootLogin yes/' /mnt/etc/ssh/sshd_config<enter>",
"sed -i -e 's/^PasswordAuthentication no/PasswordAuthentication yes/' /mnt/etc/ssh/sshd_config<enter>",
"reboot<enter>"
],
"boot_wait": "5s",
"ssh_username": "root",
"ssh_password": "vagrant",
"shutdown_command": "shutdown -p now"
}
],
"provisioners": [
{
"type": "shell",
"execute_command": "chmod +x {{ .Path }}; env {{ .Vars }} {{ .Path }}",
"scripts": [
"scripts/dfly/fixuphdd.sh",
"scripts/dfly/bootdelay.sh",
"scripts/dfly/vagrantuser.sh",
"scripts/vagrant-insecurekey.sh",
"scripts/dfly/rsync.sh"
]
}
],
"post-processors": [
{
"type": "vagrant",
"output": "boxes/dragonfly46-hammer-{{.Provider}}.box",
"vagrantfile_template": "templates/shared-folder.template"
}
]
}