-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathcentos-6.5_x86_64.json
115 lines (97 loc) · 3.3 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
"variables": {
"mirror": "http://mirrors.kernel.org/centos",
"ssh_name": "vagrant",
"ssh_pass": "vagrant",
"hostname": "ubuntu",
"mesos_version": "0.22.1",
"marathon_version": "0.8.2",
"chronos_version": "2.1.0_mesos-0.14.0-rc4",
"build_version": "{{ timestamp }}"
},
"builders": [
{
"type": "virtualbox-iso",
"guest_os_type": "RedHat_64",
"headless": true,
"vm_name": "mesos-{{user `mesos_version`}}_centos-6.5_x86_64_virtualbox_{{user `mesos_version`}}.{{user `build_version`}}",
"disk_size": 40960,
"vboxmanage": [
[ "modifyvm", "{{.Name}}", "--memory", "2048" ],
[ "modifyvm", "{{.Name}}", "--cpus", "2" ]
],
"iso_url": "{{user `mirror`}}/6.5/isos/x86_64/CentOS-6.5-x86_64-bin-DVD1.iso",
"iso_checksum": "32c7695b97f7dcd1f59a77a71f64f2957dddf738",
"iso_checksum_type": "sha1",
"http_directory": "http",
"http_port_min" : 9001,
"http_port_max" : 9001,
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos-6.5/ks.cfg<enter><wait>"
],
"ssh_username": "{{user `ssh_name`}}",
"ssh_password": "{{user `ssh_pass`}}",
"ssh_port": 22,
"ssh_wait_timeout": "60m",
"shutdown_command": "echo '{{user `ssh_pass`}}'|sudo -S /sbin/halt -h -p",
"output_directory": "build/centos-6.5_x86_64_virtualbox",
"format": "ova"
}
],
"provisioners": [{
"type": "shell",
"scripts": [
"scripts/centos/common/update.sh",
"scripts/centos/common/install-unzip.sh",
"scripts/centos/common/install-wget.sh",
"scripts/centos/common/install-curl.sh",
"scripts/centos/common/install-jre.sh",
"scripts/centos/virtualbox/install-dkms.sh",
"scripts/virtualbox/install_vbox_guest_additions.sh",
"scripts/virtualbox/sudoers_setup.sh",
"scripts/virtualbox/vagrant_ssh.sh"
],
"execute_command": "echo '{{user `ssh_pass`}}' | sudo -S sh '{{ .Path }}'"
},
{
"type": "chef-solo",
"prevent_sudo": false,
"skip_install": false,
"cookbook_paths": ["./vendor-cookbooks/"],
"run_list": [
"mesos",
"docker::cgroups",
"docker::lxc",
"docker"
],
"json": {
"mesos": {
"type": "mesosphere",
"version": "{{user `mesos_version`}}",
"mesosphere": {
"with_zookeeper": true
}
}
},
"execute_command": "echo '{{user `ssh_pass`}}' | {{if .Sudo}}sudo -S{{end}} chef-solo -c {{.ConfigPath}} -j {{.JsonPath}}",
"install_command": "echo '{{user `ssh_pass`}}' | {{if .Sudo}}sudo -S{{end}} bash -c 'curl -L https://www.opscode.com/chef/install.sh| bash -s'"
},
{
"type": "shell",
"environment_vars": [
"MARATHON_VERSION={{user `marathon_version`}}",
"CHRONOS_VERSION={{user `chronos_version`}}"
],
"scripts": [
"scripts/common/install_marathon.sh",
"scripts/common/install_chronos.sh"
],
"execute_command": "echo '{{user `ssh_pass`}}' | {{ .Vars }} sudo -E -S sh '{{ .Path }}'"
}],
"post-processors": [
{
"type": "vagrant",
"output": "build/centos-6.5_x86_64_{{.Provider}}/mesos-{{user `mesos_version`}}_centos-6.5_x86_64_{{.Provider}}_{{user `mesos_version`}}.{{user `build_version`}}.box",
"keep_input_artifact": true
}]
}