Skip to content

Commit 039dac2

Browse files
committed
Add templates for CentOS 6.7
1 parent 71f1f5e commit 039dac2

5 files changed

+680
-0
lines changed

Diff for: centos67-desktop.json

+163
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
{
2+
"builders": [
3+
{
4+
"boot_command": [
5+
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort}}/ks6-desktop.cfg<enter>"
6+
],
7+
"disk_size": 130048,
8+
"guest_os_type": "centos-64",
9+
"headless": "{{ user `headless` }}",
10+
"http_directory": "http",
11+
"iso_checksum": "{{ user `iso_checksum` }}",
12+
"iso_checksum_type": "sha1",
13+
"iso_urls": [
14+
"{{ user `iso_path` }}/{{ user `iso_name` }}",
15+
"{{ user `iso_url` }}"
16+
],
17+
"shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now",
18+
"ssh_password": "{{ user `ssh_password` }}",
19+
"ssh_username": "{{ user `ssh_username` }}",
20+
"ssh_wait_timeout": "10000s",
21+
"tools_upload_flavor": "linux",
22+
"type": "vmware-iso",
23+
"vm_name": "centos67-desktop",
24+
"vmx_data": {
25+
"cpuid.coresPerSocket": "1",
26+
"memsize": "1024",
27+
"numvcpus": "1"
28+
}
29+
},
30+
{
31+
"boot_command": [
32+
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort}}/ks6-desktop.cfg<enter>"
33+
],
34+
"disk_size": 130048,
35+
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
36+
"guest_os_type": "RedHat_64",
37+
"hard_drive_interface": "sata",
38+
"headless": "{{ user `headless` }}",
39+
"http_directory": "http",
40+
"iso_checksum": "{{ user `iso_checksum` }}",
41+
"iso_checksum_type": "sha1",
42+
"iso_urls": [
43+
"{{ user `iso_path` }}/{{ user `iso_name` }}",
44+
"{{ user `iso_url` }}"
45+
],
46+
"shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now",
47+
"ssh_password": "{{ user `ssh_password` }}",
48+
"ssh_username": "{{ user `ssh_username` }}",
49+
"ssh_wait_timeout": "10000s",
50+
"type": "virtualbox-iso",
51+
"vboxmanage": [
52+
[
53+
"modifyvm",
54+
"{{.Name}}",
55+
"--memory",
56+
"1024"
57+
],
58+
[
59+
"modifyvm",
60+
"{{.Name}}",
61+
"--cpus",
62+
"1"
63+
]
64+
],
65+
"virtualbox_version_file": ".vbox_version",
66+
"vm_name": "centos67-desktop"
67+
},
68+
{
69+
"boot_command": [
70+
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort}}/ks6-desktop.cfg<enter>"
71+
],
72+
"disk_size": 130048,
73+
"guest_os_type": "centos",
74+
"http_directory": "http",
75+
"iso_checksum": "{{ user `iso_checksum` }}",
76+
"iso_checksum_type": "sha1",
77+
"iso_urls": [
78+
"{{ user `iso_path` }}/{{ user `iso_name` }}",
79+
"{{ user `iso_url` }}"
80+
],
81+
"parallels_tools_flavor": "lin",
82+
"prlctl": [
83+
[
84+
"set",
85+
"{{.Name}}",
86+
"--memsize",
87+
"1024"
88+
],
89+
[
90+
"set",
91+
"{{.Name}}",
92+
"--cpus",
93+
"1"
94+
]
95+
],
96+
"shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now",
97+
"ssh_password": "{{ user `ssh_password` }}",
98+
"ssh_username": "{{ user `ssh_username` }}",
99+
"ssh_wait_timeout": "10000s",
100+
"type": "parallels-iso",
101+
"vm_name": "centos67-desktop"
102+
}
103+
],
104+
"post-processors": [
105+
{
106+
"keep_input_artifact": false,
107+
"output": "box/{{.Provider}}/centos67-desktop-{{user `cm`}}{{user `cm_version`}}-{{user `version`}}.box",
108+
"type": "vagrant",
109+
"vagrantfile_template": "tpl/vagrantfile-centos67-desktop.tpl"
110+
}
111+
],
112+
"provisioners": [
113+
{
114+
"environment_vars": [
115+
"CM={{user `cm`}}",
116+
"CM_VERSION={{user `cm_version`}}",
117+
"CLEANUP_PAUSE={{user `cleanup_pause`}}",
118+
"UPDATE={{user `update`}}",
119+
"INSTALL_VAGRANT_KEY={{user `install_vagrant_key`}}",
120+
"SSH_USERNAME={{user `ssh_username`}}",
121+
"SSH_PASSWORD={{user `ssh_password`}}",
122+
"http_proxy={{user `http_proxy`}}",
123+
"https_proxy={{user `https_proxy`}}",
124+
"ftp_proxy={{user `ftp_proxy`}}",
125+
"rsync_proxy={{user `rsync_proxy`}}",
126+
"no_proxy={{user `no_proxy`}}"
127+
],
128+
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
129+
"scripts": [
130+
"script/fix-slow-dns.sh",
131+
"script/sshd.sh",
132+
"script/update.sh",
133+
"script/vagrant.sh",
134+
"script/desktop.sh",
135+
"script/vmtool.sh",
136+
"script/cmtool.sh",
137+
"script/cleanup.sh"
138+
],
139+
"type": "shell"
140+
}
141+
],
142+
"variables": {
143+
"cleanup_pause": "",
144+
"cm": "nocm",
145+
"cm_version": "",
146+
"ftp_proxy": "{{env `ftp_proxy`}}",
147+
"headless": "",
148+
"http_proxy": "{{env `http_proxy`}}",
149+
"https_proxy": "{{env `https_proxy`}}",
150+
"install_vagrant_key": "true",
151+
"iso_checksum": "7bb8c1c23a4fdef93e6f0a6347d570e5764d0b38",
152+
"iso_name": "CentOS-6.7-x86_64-bin-DVD1.iso",
153+
"iso_path": "iso",
154+
"iso_url": "http://mirrors.kernel.org/centos/6.7/isos/x86_64/CentOS-6.7-x86_64-bin-DVD1.iso",
155+
"no_proxy": "{{env `no_proxy`}}",
156+
"rsync_proxy": "{{env `rsync_proxy`}}",
157+
"ssh_password": "vagrant",
158+
"ssh_username": "vagrant",
159+
"update": "false",
160+
"version": "0.1.0"
161+
}
162+
}
163+

Diff for: centos67-docker.json

+162
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
{
2+
"builders": [
3+
{
4+
"boot_command": [
5+
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort}}/ks6.cfg<enter>"
6+
],
7+
"disk_size": 65536,
8+
"guest_os_type": "centos-64",
9+
"headless": "{{ user `headless` }}",
10+
"http_directory": "http",
11+
"iso_checksum": "{{ user `iso_checksum` }}",
12+
"iso_checksum_type": "sha1",
13+
"iso_urls": [
14+
"{{ user `iso_path` }}/{{ user `iso_name` }}",
15+
"{{ user `iso_url` }}"
16+
],
17+
"shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now",
18+
"ssh_password": "{{ user `ssh_password` }}",
19+
"ssh_username": "{{ user `ssh_username` }}",
20+
"ssh_wait_timeout": "10000s",
21+
"tools_upload_flavor": "linux",
22+
"type": "vmware-iso",
23+
"vm_name": "centos67-docker",
24+
"vmx_data": {
25+
"cpuid.coresPerSocket": "1",
26+
"memsize": "512",
27+
"numvcpus": "1"
28+
}
29+
},
30+
{
31+
"boot_command": [
32+
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort}}/ks6.cfg<enter>"
33+
],
34+
"disk_size": 65536,
35+
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
36+
"guest_os_type": "RedHat_64",
37+
"hard_drive_interface": "sata",
38+
"headless": "{{ user `headless` }}",
39+
"http_directory": "http",
40+
"iso_checksum": "{{ user `iso_checksum` }}",
41+
"iso_checksum_type": "sha1",
42+
"iso_urls": [
43+
"{{ user `iso_path` }}/{{ user `iso_name` }}",
44+
"{{ user `iso_url` }}"
45+
],
46+
"shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now",
47+
"ssh_password": "{{ user `ssh_password` }}",
48+
"ssh_username": "{{ user `ssh_username` }}",
49+
"ssh_wait_timeout": "10000s",
50+
"type": "virtualbox-iso",
51+
"vboxmanage": [
52+
[
53+
"modifyvm",
54+
"{{.Name}}",
55+
"--memory",
56+
"512"
57+
],
58+
[
59+
"modifyvm",
60+
"{{.Name}}",
61+
"--cpus",
62+
"1"
63+
]
64+
],
65+
"virtualbox_version_file": ".vbox_version",
66+
"vm_name": "centos67-docker"
67+
},
68+
{
69+
"boot_command": [
70+
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort}}/ks6.cfg<enter>"
71+
],
72+
"disk_size": 65536,
73+
"guest_os_type": "centos",
74+
"http_directory": "http",
75+
"iso_checksum": "{{ user `iso_checksum` }}",
76+
"iso_checksum_type": "sha1",
77+
"iso_urls": [
78+
"{{ user `iso_path` }}/{{ user `iso_name` }}",
79+
"{{ user `iso_url` }}"
80+
],
81+
"parallels_tools_flavor": "lin",
82+
"prlctl": [
83+
[
84+
"set",
85+
"{{.Name}}",
86+
"--memsize",
87+
"512"
88+
],
89+
[
90+
"set",
91+
"{{.Name}}",
92+
"--cpus",
93+
"1"
94+
]
95+
],
96+
"shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now",
97+
"ssh_password": "{{ user `ssh_password` }}",
98+
"ssh_username": "{{ user `ssh_username` }}",
99+
"ssh_wait_timeout": "10000s",
100+
"type": "parallels-iso",
101+
"vm_name": "centos67-docker"
102+
}
103+
],
104+
"post-processors": [
105+
{
106+
"keep_input_artifact": false,
107+
"output": "box/{{.Provider}}/centos67-docker-{{user `cm`}}{{user `cm_version`}}-{{user `version`}}.box",
108+
"type": "vagrant"
109+
}
110+
],
111+
"provisioners": [
112+
{
113+
"environment_vars": [
114+
"CM={{user `cm`}}",
115+
"CM_VERSION={{user `cm_version`}}",
116+
"CLEANUP_PAUSE={{user `cleanup_pause`}}",
117+
"UPDATE={{user `update`}}",
118+
"INSTALL_VAGRANT_KEY={{user `install_vagrant_key`}}",
119+
"SSH_USERNAME={{user `ssh_username`}}",
120+
"SSH_PASSWORD={{user `ssh_password`}}",
121+
"http_proxy={{user `http_proxy`}}",
122+
"https_proxy={{user `https_proxy`}}",
123+
"ftp_proxy={{user `ftp_proxy`}}",
124+
"rsync_proxy={{user `rsync_proxy`}}",
125+
"no_proxy={{user `no_proxy`}}"
126+
],
127+
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
128+
"scripts": [
129+
"script/fix-slow-dns.sh",
130+
"script/sshd.sh",
131+
"script/update.sh",
132+
"script/vagrant.sh",
133+
"script/vmtool.sh",
134+
"script/cmtool.sh",
135+
"script/docker.sh",
136+
"script/cleanup.sh"
137+
],
138+
"type": "shell"
139+
}
140+
],
141+
"variables": {
142+
"cleanup_pause": "",
143+
"cm": "nocm",
144+
"cm_version": "",
145+
"ftp_proxy": "{{env `ftp_proxy`}}",
146+
"headless": "",
147+
"http_proxy": "{{env `http_proxy`}}",
148+
"https_proxy": "{{env `https_proxy`}}",
149+
"install_vagrant_key": "true",
150+
"iso_checksum": "7bb8c1c23a4fdef93e6f0a6347d570e5764d0b38",
151+
"iso_name": "CentOS-6.7-x86_64-bin-DVD1.iso",
152+
"iso_path": "iso",
153+
"iso_url": "http://mirrors.kernel.org/centos/6.7/isos/x86_64/CentOS-6.7-x86_64-bin-DVD1.iso",
154+
"no_proxy": "{{env `no_proxy`}}",
155+
"rsync_proxy": "{{env `rsync_proxy`}}",
156+
"ssh_password": "vagrant",
157+
"ssh_username": "vagrant",
158+
"update": "false",
159+
"version": "0.1.0"
160+
}
161+
}
162+

0 commit comments

Comments
 (0)