forked from rgdoliveira/alpine-openstack-image
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathalpine.json
More file actions
67 lines (66 loc) · 1.83 KB
/
alpine.json
File metadata and controls
67 lines (66 loc) · 1.83 KB
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
{
"builders": [
{
"boot_command": [
"root<enter><wait>",
"ifconfig eth0 up \u0026\u0026 udhcpc -i eth0<enter><wait5>",
"wget http://{{ .HTTPIP }}:{{ .HTTPPort }}/answers<enter><wait>",
"BOOT_SIZE=50 setup-alpine -f answers<enter><wait10>",
"{{user `root_pw`}}<enter><wait>",
"{{user `root_pw`}}<enter><wait15>",
"no<enter><wait5>",
"<wait>y<enter><wait15>",
"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": "{{user `disk`}}",
"guest_additions_mode": "disable",
"guest_os_type": "Linux_64",
"http_directory": "http",
"iso_checksum": "file:https://dl-cdn.alpinelinux.org/alpine/v3.23/releases/x86_64/alpine-virt-3.23.3-x86_64.iso.sha256",
"iso_url": "https://dl-cdn.alpinelinux.org/alpine/v3.23/releases/x86_64/alpine-virt-3.23.3-x86_64.iso",
"shutdown_command": "/sbin/poweroff",
"ssh_password": "{{user `root_pw`}}",
"ssh_username": "root",
"type": "virtualbox-iso",
"vboxmanage": [
[
"modifyvm",
"{{ .Name }}",
"--memory",
"{{ user `mem`}}"
],
[
"modifyvm",
"{{ .Name }}",
"--cpus",
"{{user `cpus`}}"
]
],
"vm_name": "alpine323"
}
],
"provisioners": [
{
"override": {
"virtualbox-iso": {
"execute_command": "/bin/sh '{{ .Path }}'"
}
},
"scripts": [
"scripts/00_base.sh",
"scripts/01_openstack.sh",
"scripts/99_cleanup.sh"
],
"type": "shell"
}
],
"variables": {
"cpus": "1",
"disk": "950",
"mem": "512"
}
}