This repository has been archived by the owner on Nov 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathopenbsd-5.9-amd64.json
124 lines (124 loc) · 4.24 KB
/
openbsd-5.9-amd64.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
{
"variables": {
"vm_name": "OpenBSD-5.9",
"disk_size": "20480",
"memory_size": "1024",
"cpus": "1",
"iso_checksum": "685262fc665425c61a2952b2820389a2d331ac5558217080e6d564d2ce88eecb",
"iso_checksum_type": "sha256",
"openbsd_version": "5.9",
"openbsd_arch": "amd64",
"ssh_username": "root",
"ssh_password": "vagrant",
"vagrant_username": "vagrant",
"vagrant_password": "vagrant",
"vagrant_group": "vagrant",
"hostname": "bento",
"source": "cd0",
"proxy": "",
"http_server": "",
"install_without_signature": "yes",
"path": "5.9/amd64",
"vagrantcloud_token": "{{env `VAGRANTCLOUD_TOKEN`}}",
"vagrantcloud_username": "{{env `VAGRANTCLOUD_USERNAME`}}",
"vagrantcloud_name": "openbsd-5.9",
"version": "2"
},
"builders": [
{
"type": "virtualbox-iso",
"boot_command": [
"i<enter><wait>",
"default<enter><wait>",
"{{ user `hostname` }}<enter><wait>",
"em0<enter><wait>",
"dhcp<enter><wait>",
"<wait10>",
"none<enter><wait>",
"done<enter><wait>",
"{{ user `ssh_password` }}<enter><wait>",
"{{ user `ssh_password` }}<enter><wait>",
"yes<enter><wait>",
"yes<enter><wait>",
"no<enter><wait>",
"{{ user `vagrant_username` }}<enter><wait>",
"{{ user `vagrant_username` }}<enter><wait>",
"{{ user `vagrant_password` }}<enter><wait>",
"{{ user `vagrant_password` }}<enter><wait>",
"no<enter><wait>",
"UTC<enter><wait>",
"wd0<enter><wait>",
"whole<enter><wait>",
"a<enter><wait>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"{{ user `source` }}<enter><wait>",
"{{ user `proxy` }}",
"{{ user `http_server` }}",
"{{ user `path` }}<enter><wait>",
"-c*<enter><wait>",
"-game*<enter><wait>",
"done<enter><wait>",
"{{ user `install_without_signature` }}<enter><wait>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"done<enter><wait5>",
"yes<enter><wait>",
"ftp -o /tmp/install.sh http://{{ .HTTPIP }}:{{ .HTTPPort }}/install.sh<enter><wait>",
"OPENBSD_RELEASE={{ user `openbsd_version` }} OPENBSD_ARCH={{ user `openbsd_arch` }} sh /tmp/install.sh<enter><wait>",
"reboot<enter>"
],
"boot_wait": "15s",
"iso_url": "http://ftp.openbsd.org/pub/OpenBSD/{{ user `openbsd_version` }}/{{ user `openbsd_arch` }}/install59.iso",
"iso_checksum": "{{ user `iso_checksum` }}",
"iso_checksum_type": "{{ user `iso_checksum_type` }}",
"guest_os_type": "OpenBSD_64",
"guest_additions_mode": "disable",
"http_directory": "http/openbsd",
"shutdown_command": "shutdown -h -p now",
"ssh_username": "root",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"ssh_private_key_file": "vagrant/keys/vagrant.key",
"disk_size": "{{ user `disk_size` }}",
"virtualbox_version_file": ".vbox_version",
"vm_name": "{{ user `vm_name` }}",
"vboxmanage": [
["modifyvm", "{{ .Name }}", "--memory", "{{ user `memory_size` }}"],
["modifyvm", "{{ .Name }}", "--cpus", "{{ user `cpus` }}"]
]
}
],
"provisioners": [
{
"type": "shell",
"scripts": [
"scripts/openbsd/init.sh",
"scripts/openbsd/sudoers.sh",
"scripts/openbsd/vagrant.sh",
"scripts/common/sshd.sh",
"scripts/openbsd/minimize.sh"
],
"environment_vars": [
"PKG_PATH=http://ftp.openbsd.org/pub/OpenBSD/{{ user `openbsd_version` }}/packages/{{ user `openbsd_arch` }}/",
"VAGRANT_USER={{user `vagrant_username`}}",
"VAGRANT_PASSWORD={{user `vagrant_password`}}",
"VAGRANT_GROUP={{user `vagrant_group`}}"
]
}
],
"post-processors": [
[
{
"type": "vagrant",
"compression_level": 9,
"output": "vagrant/openbsd/OpenBSD-{{ .Provider }}-{{ user `version` }}.box"
},
{
"type": "vagrant-cloud",
"access_token": "{{user `vagrantcloud_token`}}",
"box_tag": "{{ user `vagrantcloud_username` }}/{{ user `vagrantcloud_name` }}",
"version": "{{user `version`}}"
}
]
]
}