This repository has been archived by the owner on Apr 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathjessie.json
68 lines (62 loc) · 2.29 KB
/
jessie.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
{
"variables": {
"user": "packer",
"password": "packer",
"disk_size": "10000",
"domain": ""
},
"builders":
[
{
"name": "jessie",
"ssh_wait_timeout": "15m",
"type": "qemu",
"format": "qcow2",
"accelerator": "kvm",
"net_device": "virtio-net",
"disk_cache": "none",
"disk_interface": "virtio",
"headless": "true",
"disk_size": "{{ user `disk_size`}}",
"qemuargs": [[ "-m", "1024M" ],[ "-smp", "4" ]],
"iso_url": "http://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-8.2.0-amd64-netinst.iso",
"iso_checksum": "762eb3dfc22f85faf659001ebf270b4f",
"iso_checksum_type": "md5",
"http_directory": "http",
"ssh_username": "{{user `user`}}",
"ssh_password": "{{user `password`}}",
"shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -h now",
"boot_wait": "5s",
"boot_command": [
"<esc><wait><wait>",
"install auto <wait>",
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg <wait>",
"debian-installer=en_US locale=en_AU.UTF-8 keymap=us <wait>",
"netcfg/get_hostname={{ .Name }} <wait>",
"netcfg/get_domain={{ user `domain`}} <wait>",
"fb=false debconf/frontend=noninteractive <wait>",
"passwd/user-fullname={{user `user`}} <wait>",
"passwd/user-password={{user `password`}} <wait>",
"passwd/user-password-again={{user `password`}} <wait>",
"passwd/username={{user `user`}} <wait>",
"<enter><wait>"
]
}
],
"provisioners": [
{
"type": "file",
"source": "scripts/",
"destination": "/home/packer/"
},
{
"type": "shell",
"execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [
"scripts/packages.sh",
"scripts/cleanup.sh",
"scripts/tuning.sh"
]
}
]
}