forked from lightcode/packer-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpacker.json
More file actions
39 lines (34 loc) · 1015 Bytes
/
Copy pathpacker.json
File metadata and controls
39 lines (34 loc) · 1015 Bytes
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
{
"builders": [
{
"vm_name": "alpine-docker.qcow2",
"type": "qemu",
"accelerator": "kvm",
"headless": "true",
"iso_checksum_type": "sha256",
"iso_checksum": "9da0f7c2dd8ea55a542b19150012f3fa4e94724eb67cb3777b8027a872e3cc30",
"iso_url": "http://dl-cdn.alpinelinux.org/alpine/v3.8/releases/x86_64/alpine-standard-3.8.0-x86_64.iso",
"disk_size": 4000,
"format": "qcow2",
"http_directory": "httpdir",
"output_directory": "images",
"ssh_username": "root",
"ssh_password": "vmpass",
"ssh_wait_timeout": "1h",
"shutdown_command": "/sbin/poweroff",
"boot_wait": "10s",
"boot_command": [
"root<enter><wait>",
"ip link set eth0 up && udhcpc -i eth0 &&<enter>",
"wget http://{{ .HTTPIP }}:{{ .HTTPPort }}/setup.sh &&<enter>",
"chmod +x setup.sh && ./setup.sh<enter>"
]
}
],
"provisioners": [
{
"type": "shell",
"script": "scripts/install"
}
]
}