This repository has been archived by the owner on Nov 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathalpine-3.4-x86_64.json
99 lines (99 loc) · 3.7 KB
/
alpine-3.4-x86_64.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"variables": {
"vm_name": "Alpine-Linux-3.4-x86_64",
"disk_size": "20000",
"memory_size": "512",
"cpus": "1",
"variant": "minimal",
"ssh_username": "root",
"ssh_password": "vagrant",
"root_password": "vagrant",
"vagrant_username": "vagrant",
"vagrant_password": "vagrant",
"iso_checksum": "7dd15b86cf5679b35dd5f1c511f6a67470293a58",
"iso_checksum_type": "sha1",
"alpine_arch": "x86_64",
"alpine_version": "3.4",
"alpine_release": "3.4.1",
"vagrantcloud_token": "{{env `VAGRANTCLOUD_TOKEN`}}",
"vagrantcloud_username": "{{env `VAGRANTCLOUD_USERNAME`}}",
"vagrantcloud_name": "alpine-3.4",
"version": "2"
},
"builders": [
{
"type": "virtualbox-iso",
"boot_command": [
"root<enter><wait>",
"ifconfig eth0 up && udhcpc -i eth0<enter><wait>",
"wget -O /tmp/answers.txt http://{{ .HTTPIP }}:{{ .HTTPPort }}/answers.txt<enter><wait>",
"setup-alpine -f /tmp/answers.txt<enter><wait>",
"vagrant<enter><wait>",
"vagrant<enter><wait>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"y<enter><wait10><wait10><wait10><wait10><wait10><wait10>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"<wait10><wait10><wait10><wait10><wait10><wait10>",
"wget -O /tmp/install.sh http://{{ .HTTPIP }}:{{ .HTTPPort }}/install.sh<enter><wait>",
"sh /tmp/install.sh<enter><wait>"
],
"boot_wait": "60s",
"disk_size": "{{ user `disk_size` }}",
"guest_os_type": "Linux26_64",
"http_directory": "http/alpine-3-{{ user `alpine_arch` }}",
"iso_urls": "http://dl-cdn.alpinelinux.org/alpine/v{{ user `alpine_version` }}/releases/{{ user `alpine_arch` }}/alpine-standard-{{ user `alpine_release` }}-{{ user `alpine_arch` }}.iso",
"iso_checksum": "{{ user `iso_checksum` }}",
"iso_checksum_type": "{{ user `iso_checksum_type` }}",
"ssh_username": "{{user `ssh_username`}}",
"ssh_password": "{{user `ssh_password`}}",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"shutdown_command": "/sbin/poweroff",
"guest_additions_mode": "disable",
"virtualbox_version_file": ".vbox_version",
"vm_name": "{{user `vm_name`}}-{{user `variant`}}",
"vboxmanage": [
[ "modifyvm", "{{.Name}}", "--memory", "{{ user `memory_size` }}" ],
[ "modifyvm", "{{.Name}}", "--cpus", "{{ user `cpus` }}" ],
[ "modifyvm", "{{.Name}}", "--rtcuseutc", "on" ]
]
}
],
"provisioners": [
{
"type": "shell",
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [
"scripts/alpine/init.sh",
"scripts/alpine/sshd.sh",
"scripts/alpine/vagrant.sh",
"scripts/alpine/sudoers.sh",
"scripts/alpine/vbguest.sh",
"scripts/common/motd.sh",
"scripts/alpine/cleanup.sh"
],
"environment_vars": [
"ROOT_PASSWORD={{user `root_password`}}",
"VAGRANT_USERNAME={{user `vagrant_username`}}",
"VAGRANT_PASSWORD={{user `vagrant_password`}}"
]
}
],
"post-processors": [
[
{
"type": "vagrant",
"compression_level": 9,
"output":"vagrant/alpine-{{ user `alpine_version` }}-{{ user `alpine_arch` }}/alpine-{{ user `alpine_version` }}-{{ user `alpine_arch` }}-{{.Provider}}.box"
},
{
"type": "vagrant-cloud",
"access_token": "{{user `vagrantcloud_token`}}",
"box_tag": "{{ user `vagrantcloud_username` }}/{{ user `vagrantcloud_name` }}",
"version": "{{user `version`}}"
}
]
]
}