Commit 545aff36f69f21b80343db7a599fefda0ce6922e
1 parent
5d3a8642
Exists in
master
and in
2 other branches
Remove the default omnibus-ruby Vagrantfile
We were not using it; our build enviroments are documented in doc/build.md.
Showing
1 changed file
with
0 additions
and
95 deletions
Show diff stats
Vagrantfile
... | ... | @@ -1,95 +0,0 @@ |
1 | -# -*- mode: ruby -*- | |
2 | -# vi: set ft=ruby : | |
3 | - | |
4 | -require "vagrant" | |
5 | - | |
6 | -if Vagrant::VERSION < "1.2.1" | |
7 | - raise "The Omnibus Build Lab is only compatible with Vagrant 1.2.1+" | |
8 | -end | |
9 | - | |
10 | -host_project_path = File.expand_path("..", __FILE__) | |
11 | -guest_project_path = "/home/vagrant/#{File.basename(host_project_path)}" | |
12 | -project_name = "gitlab" | |
13 | - | |
14 | -Vagrant.configure("2") do |config| | |
15 | - | |
16 | - config.vm.hostname = "#{project_name}-omnibus-build-lab" | |
17 | - | |
18 | - config.vm.define 'ubuntu-10.04' do |c| | |
19 | - c.berkshelf.berksfile_path = "./Berksfile" | |
20 | - c.vm.box = "opscode-ubuntu-10.04" | |
21 | - c.vm.box_url = "http://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-10.04_chef-11.2.0.box" | |
22 | - end | |
23 | - | |
24 | - config.vm.define 'ubuntu-11.04' do |c| | |
25 | - c.berkshelf.berksfile_path = "./Berksfile" | |
26 | - c.vm.box = "opscode-ubuntu-11.04" | |
27 | - c.vm.box_url = "http://opscode-vm.s3.amazonaws.com/vagrant/boxes/opscode-ubuntu-11.04.box" | |
28 | - end | |
29 | - | |
30 | - config.vm.define 'ubuntu-12.04' do |c| | |
31 | - c.berkshelf.berksfile_path = "./Berksfile" | |
32 | - c.vm.box = "canonical-ubuntu-12.04" | |
33 | - c.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/precise/current/precise-server-cloudimg-amd64-vagrant-disk1.box" | |
34 | - end | |
35 | - | |
36 | - config.vm.define 'centos-5' do |c| | |
37 | - c.berkshelf.berksfile_path = "./Berksfile" | |
38 | - c.vm.box = "opscode-centos-5.8" | |
39 | - c.vm.box_url = "http://opscode-vm.s3.amazonaws.com/vagrant/opscode_centos-5.8_chef-11.2.0.box" | |
40 | - end | |
41 | - | |
42 | - config.vm.define 'centos-6' do |c| | |
43 | - c.berkshelf.berksfile_path = "./Berksfile" | |
44 | - c.vm.box = "opscode-centos-6.3" | |
45 | - c.vm.box_url = "http://opscode-vm.s3.amazonaws.com/vagrant/opscode_centos-6.3_chef-11.2.0.box" | |
46 | - end | |
47 | - | |
48 | - config.vm.provider :virtualbox do |vb| | |
49 | - # Give enough horsepower to build without taking all day. | |
50 | - vb.customize [ | |
51 | - "modifyvm", :id, | |
52 | - "--memory", "1536", | |
53 | - "--cpus", "2" | |
54 | - ] | |
55 | - end | |
56 | - | |
57 | - # Ensure a recent version of the Chef Omnibus packages are installed | |
58 | - config.omnibus.chef_version = :latest | |
59 | - | |
60 | - # Enable the berkshelf-vagrant plugin | |
61 | - config.berkshelf.enabled = true | |
62 | - # The path to the Berksfile to use with Vagrant Berkshelf | |
63 | - config.berkshelf.berksfile_path = "./Berksfile" | |
64 | - | |
65 | - config.ssh.max_tries = 40 | |
66 | - config.ssh.timeout = 120 | |
67 | - config.ssh.forward_agent = true | |
68 | - | |
69 | - host_project_path = File.expand_path("..", __FILE__) | |
70 | - guest_project_path = "/home/vagrant/#{File.basename(host_project_path)}" | |
71 | - | |
72 | - config.vm.synced_folder host_project_path, guest_project_path | |
73 | - | |
74 | - # prepare VM to be an Omnibus builder | |
75 | - config.vm.provision :chef_solo do |chef| | |
76 | - chef.json = { | |
77 | - "omnibus" => { | |
78 | - "build_user" => "vagrant", | |
79 | - "build_dir" => guest_project_path, | |
80 | - "install_dir" => "/opt/#{project_name}" | |
81 | - } | |
82 | - } | |
83 | - | |
84 | - chef.run_list = [ | |
85 | - "recipe[omnibus::default]" | |
86 | - ] | |
87 | - end | |
88 | - | |
89 | - config.vm.provision :shell, :inline => <<-OMNIBUS_BUILD | |
90 | - export PATH=/usr/local/bin:$PATH | |
91 | - cd #{guest_project_path} | |
92 | - su vagrant -c "bundle install --binstubs" | |
93 | - su vagrant -c "bin/omnibus build project #{project_name}" | |
94 | - OMNIBUS_BUILD | |
95 | -end |