forked from ryanmaclean/packer-openbsd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
openbsd-5.9-amd64.json
119 lines (119 loc) · 3.89 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
{
"variables": {
"chef_version": "provisionerless",
"ftp_proxy": "{{env `ftp_proxy`}}",
"http_proxy": "{{env `http_proxy`}}",
"https_proxy": "{{env `https_proxy`}}",
"mirror": "http://ftp.openbsd.org",
"vagrant_ansible": "no",
"atlas_box_name": "rmaclean/openbsd-5.9",
"atlas_box_version": "1.0.0"
},
"provisioners": [
{
"environment_vars": [
"CHEF_VERSION={{user `chef_version`}}",
"MIRROR={{user `mirror`}}",
"ftp_proxy={{user `ftp_proxy`}}",
"http_proxy={{user `http_proxy`}}",
"https_proxy={{user `https_proxy`}}",
"VAGRANT_ANSIBLE={{user `vagrant_ansible`}}"
],
"type": "shell",
"scripts": [
"scripts/postinstall.sh",
"scripts/vagrant.sh",
"scripts/ansible.sh",
"scripts/chef.sh",
"scripts/minimize.sh"
],
"execute_command": "export {{.Vars}} && cat {{.Path}} | su -m"
}
],
"builders": [
{
"type": "virtualbox-iso",
"boot_command": [
"S<enter>",
"cat <<EOF >>install.conf<enter>",
"System hostname = openbsd59<enter>",
"Password for root = vagrant<enter>",
"Setup a user = vagrant<enter>",
"Password for user = vagrant<enter>",
"Allow root ssh login = yes<enter>",
"What timezone are you in = UTC<enter>",
"Location of sets = cd<enter>",
"Set name(s) = -game*.tgz -x*.tgz<enter>",
"Directory does not contain SHA256.sig. Continue without verification = yes<enter>",
"EOF<enter>",
"install -af install.conf && reboot<enter>"
],
"boot_wait": "30s",
"disk_size": 10140,
"guest_additions_mode": "disable",
"guest_os_type": "OpenBSD_64",
"iso_checksum": "685262fc665425c61a2952b2820389a2d331ac5558217080e6d564d2ce88eecb",
"iso_checksum_type": "sha256",
"iso_url": "{{user `mirror`}}/pub/OpenBSD/5.9/amd64/install59.iso",
"output_directory": "packer-openbsd-5.9-amd64-virtualbox",
"shutdown_command": "/sbin/halt -p",
"ssh_username": "root",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"vboxmanage": [
[ "modifyvm", "{{.Name}}", "--memory", "384" ],
[ "modifyvm", "{{.Name}}", "--cpus", "1" ]
],
"virtualbox_version_file": ".vbox_version",
"vm_name": "openbsd-5.9-amd64"
},
{
"type": "vmware-iso",
"boot_command": [
"S<enter>",
"cat <<EOF >>install.conf<enter>",
"System hostname = openbsd59<enter>",
"Password for root = vagrant<enter>",
"Setup a user = vagrant<enter>",
"Password for user = vagrant<enter>",
"Allow root ssh login = yes<enter>",
"What timezone are you in = UTC<enter>",
"Location of sets = cd<enter>",
"Set name(s) = -game*.tgz -x*.tgz<enter>",
"Directory does not contain SHA256.sig. Continue without verification = yes<enter>",
"EOF<enter>",
"install -af install.conf && reboot<enter>"
],
"boot_wait": "30s",
"disk_size": 10140,
"guest_os_type": "other-64",
"iso_checksum": "685262fc665425c61a2952b2820389a2d331ac5558217080e6d564d2ce88eecb",
"iso_checksum_type": "sha256",
"iso_url": "{{user `mirror`}}/pub/OpenBSD/5.9/amd64/install59.iso",
"output_directory": "packer-openbsd-5.9-amd64-vmware",
"ssh_username": "root",
"ssh_password": "vagrant",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"shutdown_command": "/sbin/halt -p",
"vm_name": "openbsd-5.9-amd64",
"vmx_data": {
"memsize": "384",
"numvcpus": "1",
"cpuid.coresPerSocket": "1"
}
}
],
"post-processors": [
[{
"type": "vagrant",
"output": "openbsd-5.9-amd64-{{.Provider}}.box",
"vagrantfile_template": "vagrantfiles/openbsd"
}]
],
"push": {
"name": "",
"vcs": true
}
}