-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcentos-6-server-x86_64.json
60 lines (51 loc) · 1.62 KB
/
centos-6-server-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
{
"variables": {
"name": "centos-6-server-x86_64",
"user": "vagrant",
"password": "vagrant",
"size": "10000",
"mirror": "http://mirror.karneval.cz/pub/centos/6/isos/x86_64/CentOS-6.7-x86_64-netinstall.iso",
"md5sum": "171ce654ec06040d096daf75934ca8ca"
},
"builders": [
{
"name": "{{user `name`}}",
"type": "qemu",
"format": "qcow2",
"accelerator": "kvm",
"disk_size": "{{user `size`}}",
"disk_interface": "virtio",
"iso_url": "{{user `mirror`}}",
"iso_checksum": "{{user `md5sum`}}",
"iso_checksum_type": "md5",
"http_directory": "data",
"ssh_username": "{{user `user`}}",
"ssh_password": "{{user `password`}}",
"ssh_port": 22,
"ssh_wait_timeout": "10m",
"shutdown_command": "echo '{{user `password`}}'|sudo -S shutdown -P now",
"boot_wait": "5s",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `name`}}-ks.cfg<enter><wait>"
]
}
],
"provisioners": [
{
"type": "shell",
"execute_command": "echo '{{user `password`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [
"data/provision.sh"
]
}
],
"post-processors": [
{
"type": "vagrant",
"output": "boxes/{{user `name`}}.box",
"include": [
"data/Vagrantfile.spec"
]
}
]
}