-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtemplate.json
86 lines (86 loc) · 2.56 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
{
"builders": [
{
"type": "virtualbox-iso",
"boot_command": [],
"boot_wait": "30s",
"disk_size": 20480,
"guest_os_type": "FreeBSD_64",
"guest_additions_mode": "disable",
"iso_checksum": "sha256:eea6d787894b25c43ceef3ff87bddeba82cb4a3e756d104311200c7c1af8e1f9",
"iso_url": "https://mfsbsd.vx.sk/files/iso/13/amd64/mfsbsd-se-13.0-RELEASE-amd64.iso",
"shutdown_command": "poweroff; poweroff",
"ssh_password": "mfsroot",
"ssh_username": "root",
"ssh_wait_timeout": "120s",
"virtualbox_version_file": ".vbox_version",
"vboxmanage": [["modifyvm", "{{.Name}}", "--memory", "1024"]]
},
{
"type": "vmware-iso",
"boot_command": [],
"boot_wait": "30s",
"disk_size": 20480,
"guest_os_type": "freebsd-64",
"iso_checksum": "sha256:eea6d787894b25c43ceef3ff87bddeba82cb4a3e756d104311200c7c1af8e1f9",
"iso_url": "https://mfsbsd.vx.sk/files/iso/13/amd64/mfsbsd-se-13.0-RELEASE-amd64.iso",
"shutdown_command": "poweroff; poweroff",
"skip_compaction": true,
"ssh_password": "mfsroot",
"ssh_username": "root",
"ssh_wait_timeout": "120s",
"vmx_data": {
"memsize": "1024"
}
},
{
"type": "qemu",
"boot_command": [],
"boot_wait": "30s",
"disk_size": 20480,
"iso_checksum": "sha256:eea6d787894b25c43ceef3ff87bddeba82cb4a3e756d104311200c7c1af8e1f9",
"iso_url": "https://mfsbsd.vx.sk/files/iso/13/amd64/mfsbsd-se-13.0-RELEASE-amd64.iso",
"shutdown_command": "poweroff; poweroff",
"skip_compaction": true,
"ssh_password": "mfsroot",
"ssh_username": "root",
"ssh_wait_timeout": "120s",
"qemuargs": [
["-m", "1024"],
["-display", "none"],
["-machine", "accel=kvm"],
["-cpu", "host"]
]
}
],
"provisioners": [
{
"type": "file",
"source": "scripts/setup.sh",
"destination": "/root/setup.sh"
},
{
"type": "shell",
"script": "scripts/bootstrap.sh",
"execute_command": "chmod +x {{ .Path }}; env {{ .Vars }} {{ .Path }}"
}
],
"post-processors": [
{
"output": "freebsd-13.0-{{.Provider}}.box",
"type": "vagrant",
"keep_input_artifact": false,
"override": {
"vmware": {
"vagrantfile_template": "files/Vagrantfile.vmware"
},
"virtualbox": {
"vagrantfile_template": "files/Vagrantfile.virtualbox"
},
"qemu": {
"vagrantfile_template": "files/Vagrantfile.qemu"
}
}
}
]
}