-
Notifications
You must be signed in to change notification settings - Fork 19
/
Rakefile
53 lines (43 loc) · 1.86 KB
/
Rakefile
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
namespace 'precise' do
task 'virtualbox-build' => 'precise:clean' do
system 'packer build -only=virtualbox-iso ubuntu12.04-opsworks.json'
end
task 'virtualbox-install' do
system 'vagrant box remove ubuntu1204-opsworks --provider virtualbox'
system 'vagrant box add ubuntu1204-opsworks virtualbox/ubuntu1204-opsworks.box'
end
task 'vmware-build' => 'precise:clean' do
system 'packer build -only=vmware-iso ubuntu12.04-opsworks.json'
end
task 'vmware-install' do
system 'vagrant box remove ubuntu1204-opsworks --provider vmware_desktop'
system 'vagrant box add ubuntu1204-opsworks vmware/ubuntu1204-opsworks.box'
end
task 'clean' do
system 'rm -f virtualbox/ubuntu1204-opsworks.box vmware/ubuntu1204-opsworks.box'
end
end
namespace 'trusty' do
task 'virtualbox-build' => 'trusty:clean' do
system 'packer build -only=virtualbox-iso ubuntu14.04-opsworks.json'
end
task 'virtualbox-install' do
system 'vagrant box remove ubuntu1404-opsworks --provider virtualbox'
system 'vagrant box add ubuntu1404-opsworks virtualbox/ubuntu1404-opsworks.box'
end
task 'vmware-build' => 'trusty:clean' do
system 'packer build -only=vmware-iso ubuntu14.04-opsworks.json'
end
task 'vmware-install' do
system 'vagrant box remove ubuntu1404-opsworks --provider vmware_desktop'
system 'vagrant box add ubuntu1404-opsworks vmware/ubuntu1404-opsworks.box'
end
task 'clean' do
system 'rm -f virtualbox/ubuntu1404-opsworks.box vmware/ubuntu1404-opsworks.box'
end
end
task 'virtualbox-build' => 'trusty:virtualbox-build'
task 'virtualbox-install' => 'trusty:virtualbox-install'
task 'vmware-build' => 'trusty:vmware-build'
task 'vmware-install' => 'trusty:vmware-install'
task 'clean' => ['precise:clean', 'trusty:clean']