-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdebian75.json
100 lines (100 loc) · 2.91 KB
/
debian75.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
100
{
"variables": {
"cm": "nocm",
"cm_version": "",
"cm_set_path": "",
"cleanup_pause": "",
"headless": "",
"iso_url": "http://cdimage.debian.org/cdimage/archive/7.5.0/amd64/iso-dvd/debian-7.5.0-amd64-DVD-1.iso",
"iso_checksum": "efbd5a9d41437f6ea2f16d6743bb9d4a21502897",
"iso_checksum_type": "sha1"
},
"builders": [{
"vm_name": "debian75",
"type": "vmware-iso",
"guest_os_type": "debian7-64",
"http_directory": "http",
"iso_url": "{{user `iso_url`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_wait_timeout": "10000s",
"headless": "{{ user `headless` }}",
"tools_upload_flavor": "linux",
"boot_command": [
"<esc><wait>",
"install",
" auto",
" url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg",
" debian-installer=en_US",
" locale=en_US",
" keymap=us",
" netcfg/get_hostname=vagrant",
" netcfg/get_domain=vm ",
"<enter>"
],
"shutdown_command": "echo 'vagrant'|sudo -S shutdown -h now",
"disk_size": 10140,
"vmx_data": {
"memsize": "512",
"numvcpus": "1"
}
},
{
"vm_name": "debian75",
"type": "virtualbox-iso",
"http_directory": "http",
"iso_url": "{{user `iso_url`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"guest_os_type": "Debian_64",
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"virtualbox_version_file": ".vbox_version",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_wait_timeout": "10000s",
"headless": "{{ user `headless` }}",
"boot_command": [
"<esc><wait>",
"install",
" auto",
" url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg",
" debian-installer=en_US",
" locale=en_US",
" keymap=us",
" netcfg/get_hostname=vagrant",
" netcfg/get_domain=vm ",
"<enter>"
],
"shutdown_command": "echo 'vagrant'|sudo -S shutdown -h now",
"disk_size": 10140,
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "512"],
["modifyvm", "{{.Name}}", "--cpus", "1"]
]
}],
"provisioners": [{
"type": "shell",
"environment_vars": [
"CM={{user `cm`}}",
"CM_VERSION={{user `cm_version`}}",
"CM_SET_PATH={{user `cm_set_path`}}",
"CLEANUP_PAUSE={{user `cleanup_pause`}}"
],
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [
"script/base.sh",
"script/vagrant.sh",
"script/vmtool.sh",
"script/cmtool.sh",
"script/minimize.sh",
"script/cleanup.sh"
]
}],
"post-processors": [{
"type": "vagrant",
"keep_input_artifact": false,
"output": "box/{{.Provider}}/debian75-{{user `cm`}}{{user `cm_version`}}.box"
}]
}