-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathopenbsd.json
108 lines (108 loc) · 3.25 KB
/
openbsd.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
{
"builders": [
{
"accelerator": "kvm",
"boot_command": [
"S<enter>",
"cat <<EOF >>install.conf<enter>",
"Choose your keyboard layout = {{user `keyboard_layout`}}<enter>",
"System hostname = {{user `hostname`}}<enter>",
"Password for root = {{user `root_password`}}<enter>",
"Start sshd(8) by default = yes<enter>",
"Do you expect to run the X Window System = no<enter>",
"Change the default console to com0 = yes<enter>",
"Which speed should com0 use = 115200<enter>",
"Setup a user = {{user `user`}}<enter>",
"Full name for user {{user `user`}} = {{user `user_full_name`}}<enter>",
"Password for user {{user `user`}} = {{user `user_password`}}<enter>",
"Allow root ssh login = yes<enter>",
"What timezone are you in = {{user `timezone`}}<enter>",
"Location of sets = http<enter>",
"HTTP Server = {{user `openbsd_mirror`}}<enter>",
"Server directory = {{user `openbsd_mirror_directory`}}/{{user `architecture`}}<enter>",
"Set name(s) = -comp*.tgz -game*.tgz -x* +bsd.mp<enter>",
"Cannot determine prefetch area. Continue without verification = yes <enter>",
"URL to autopartitioning template = http://{{ .HTTPIP }}:{{ .HTTPPort }}/autodisklabel<enter>",
"EOF<enter>",
"install -af install.conf ; reboot<enter>"
],
"boot_wait": "25s",
"disk_interface": "virtio",
"disk_size": "4096M",
"format": "raw",
"headless": false,
"http_directory": "packer_http",
"iso_checksum": "file:https://{{user `openbsd_mirror`}}/{{user `openbsd_mirror_directory`}}/{{user `architecture`}}/SHA256",
"iso_url": "http://{{user `openbsd_mirror`}}/{{user `openbsd_mirror_directory`}}/{{user `architecture`}}/install67.iso",
"qemuargs": [
[
"-m",
"1024m"
],
[
"-smp",
"2"
],
[
"-k",
"en-gb"
],
[
"-display",
"sdl"
]
],
"shutdown_command": "halt -p",
"ssh_password": "{{user `root_password`}}",
"ssh_port": 22,
"ssh_timeout": "1200s",
"ssh_username": "root",
"type": "qemu",
"vm_name": "{{user `hostname`}}"
}
],
"provisioners": [
{
"environment_vars": [
"PKG_PATH=http://{{user `openbsd_mirror`}}/{{user `openbsd_mirror_directory`}}/packages/{{user `architecture`}}/"
],
"inline": [
"pkg_add ansible python%3.8"
],
"type": "shell"
},
{
"destination": "/tmp",
"source": "./files",
"type": "file"
},
{
"destination": "/tmp",
"source": "./templates",
"type": "file"
},
{
"destination": "/tmp/config.json",
"source": "config.json",
"type": "file"
},
{
"clean_staging_directory": true,
"extra_arguments": [
"--diff",
"-e",
"'ansible_python_interpreter=/usr/local/bin/python3'"
],
"playbook_dir": "ansible",
"playbook_file": "provision.yml",
"staging_directory": "/tmp/ansible",
"type": "ansible-local"
},
{
"inline": [
"rm -rf /root/.ansible /root/.ssh"
],
"type": "shell"
}
]
}