This repository has been archived by the owner on May 22, 2023. It is now read-only.
forked from d11wtq/gentoo-packer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gentoo64.json
84 lines (83 loc) · 1.97 KB
/
gentoo64.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
{
"builders": [
{
"boot_command": [
"gentoo-nofb",
"<enter>",
"<wait10>",
"<enter>",
"<wait10>",
"<wait10>",
"<wait10>",
"<wait10>",
"<wait10>",
"passwd {{user `username`}}",
"<enter>",
"<wait>",
"{{user `password`}}",
"<enter>",
"<wait>",
"{{user `password`}}",
"<enter>",
"<wait>",
"/etc/init.d/sshd start",
"<enter>",
"<wait>"
],
"boot_wait": "5s",
"disk_size": 30720,
"guest_additions_mode": "disable",
"guest_os_type": "Gentoo_64",
"headless": false,
"iso_checksum": "911ac7e991e19ecae09ab7b37b66aea303bc8394f030139d9e54b5a4ef798b595beef785efff3218a5ecad53cd93fb931d46951a73c60dafbaf25f2ef707494b",
"iso_checksum_type": "sha512",
"iso_url": "http://distfiles.gentoo.org/releases/amd64/autobuilds/{{user `stage3`}}/install-amd64-minimal-{{user `stage3`}}.iso",
"shutdown_command": "poweroff",
"ssh_password": "{{user `password`}}",
"ssh_username": "{{user `username`}}",
"ssh_wait_timeout": "20s",
"type": "virtualbox-iso",
"vm_name": "gentoo64",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
"2048"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"4"
]
]
}
],
"description": "gentoo64 (VirtualBox)",
"post-processors": [
{
"output": "/tmp/gentoo64-virtualbox.box",
"type": "vagrant"
}
],
"provisioners": [
{
"destination": "/root",
"source": "scripts/",
"type": "file"
},
{
"environment_vars": [
"STAGE3={{user `stage3`}}"
],
"type": "shell",
"inline": ["cd /root", "chmod u+x provision.sh", "./provision.sh"]
}
],
"variables": {
"password": "packer",
"stage3": "20150730",
"username": "root"
}
}