/
centos-6.5-x86_64.json
94 lines (94 loc) · 2.48 KB
/
centos-6.5-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
{
"builders": [
{
"type": "virtualbox-iso",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos-6.5/ks.cfg<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 4096,
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"guest_os_type": "RedHat_64",
"headless": true,
"http_directory": "http",
"iso_checksum": "f21a71e8e31df73297bdd1ccd4a64a36831284bd",
"iso_checksum_type": "sha1",
"iso_url": "{{user `mirror`}}/6.5/isos/x86_64/CentOS-6.5-x86_64-minimal.iso",
"shutdown_command": "echo 'cloud-user'|sudo -S /sbin/halt -h -p",
"ssh_password": "unsecurepass",
"ssh_port": 22,
"ssh_username": "cloud-user",
"ssh_wait_timeout": "10000s",
"output_directory": "virtualbox",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
"1024"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"1"
]
],
"virtualbox_version_file": ".vbox_version"
},
{
"type":"qemu",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos-6.5/ks.cfg<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 4096,
"accelerator": "kvm",
"disk_size": 4096,
"format": "qcow2",
"output_directory": "qemu",
"headless": true,
"http_directory": "http",
"iso_checksum": "f21a71e8e31df73297bdd1ccd4a64a36831284bd",
"iso_checksum_type": "sha1",
"iso_url": "{{user `mirror`}}/6.5/isos/x86_64/CentOS-6.5-x86_64-minimal.iso",
"ssh_username": "cloud-user",
"ssh_password": "unsecurepass",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"shutdown_command": "echo 'cloud-user'|sudo -S /sbin/shutdown -hP now",
"qemuargs": [
[ "-m", "1024m" ]]
}
],
"provisioners": [
{
"type": "file",
"source": "scripts/common.sh",
"destination": "/tmp/common.sh"
},
{
"type": "file",
"source": "files/centos/cloud.cfg",
"destination": "/tmp/cloud.cfg"
},
{
"type": "file",
"source": "scripts/firstboot.sh",
"destination": "/tmp/firstboot.sh"
},
{
"type": "shell",
"execute_command": "echo 'cloud-user' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [
"scripts/growroot.sh",
"scripts/openstack-yum.sh",
"scripts/cleanup.sh"
]
}
],
"variables": {
"chef_version": "provisionerless",
"mirror": "http://mirrors.kernel.org/centos"
}
}