-
Notifications
You must be signed in to change notification settings - Fork 9
/
alpine.json
52 lines (52 loc) · 1.87 KB
/
alpine.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
{
"provisioners": [
{
"override": {
"virtualbox-iso": {
"execute_command": "/bin/sh '{{ .Path }}'"
}
},
"type": "shell",
"scripts": [
"scripts/00_base.sh",
"scripts/01_openstack.sh",
"scripts/02_docker.sh",
"scripts/99_cleanup.sh"
]
}
],
"builders": [
{
"vboxmanage": [
[ "modifyvm", "{{ .Name }}", "--memory", "1024" ],
[ "modifyvm", "{{ .Name }}", "--cpus", "1" ]
],
"http_directory": "http",
"guest_os_type": "Linux26_64",
"boot_command": [
"root<enter><wait>",
"ifconfig eth0 up && udhcpc -i eth0<enter><wait5>",
"wget http://{{ .HTTPIP }}:{{ .HTTPPort }}/answers<enter><wait>",
"setup-alpine -f answers<enter><wait5>",
"Alpine38<enter><wait>",
"Alpine38<enter><wait5>",
"<wait>y<enter><wait10>",
"rc-service sshd stop<enter>",
"mount /dev/vg0/lv_root /mnt<enter>",
"echo 'PermitRootLogin yes' >> /mnt/etc/ssh/sshd_config<enter>",
"umount /mnt<enter>",
"reboot<enter>"
],
"disk_size": 8000,
"ssh_password": "Alpine38",
"ssh_username": "root",
"iso_checksum_type": "sha256",
"iso_checksum_url": "http://dl-cdn.alpinelinux.org/alpine/v3.8/releases/x86_64/alpine-virt-3.8.2-x86_64.iso.sha256",
"iso_url": "http://dl-cdn.alpinelinux.org/alpine/v3.8/releases/x86_64/alpine-virt-3.8.2-x86_64.iso",
"vm_name": "alpine38",
"shutdown_command": "/sbin/poweroff",
"guest_additions_mode": "disable",
"type": "virtualbox-iso"
}
]
}