Skip to content

Commit 819e6a4

Browse files
committed
Use symlink to select Vagrantfile
1 parent 793f043 commit 819e6a4

File tree

2 files changed

+52
-50
lines changed

2 files changed

+52
-50
lines changed

Vagrantfile

Lines changed: 0 additions & 50 deletions
This file was deleted.

Vagrantfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Vagrantfile.ubuntu

Vagrantfile.ubuntu

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# -*- mode: ruby -*-
2+
# vi: set ft=ruby :
3+
4+
# This Vagrant file helps the development of the cookbook.
5+
# It installs and configures the official v5.2.0 version from https://github.com/gitlabhq/gitlabhq,
6+
# runs it in production mode and serves it through an nginx proxy on localhost:8080.
7+
8+
Vagrant.configure("2") do |config|
9+
# All Vagrant configuration is done here. The most common configuration
10+
# options are documented and commented below. For a complete reference,
11+
# please see the online documentation at vagrantup.com.
12+
config.berkshelf.enabled = true
13+
14+
config.vm.hostname = "gitlab"
15+
16+
# Standard Ubuntu 12.04.2 base box
17+
config.vm.box = "ubuntu-12.04.2-amd64"
18+
config.vm.box_url = "https://dl.dropbox.com/u/2894322/ubuntu-12.04.2-amd64.box"
19+
20+
# Create a forwarded port mapping which allows access to a specific port
21+
# within the machine from a port on the host machine. In the example below,
22+
# accessing "localhost:8080" will access port 80 on the guest machine.
23+
config.vm.network :forwarded_port, guest: 80, host: 8080 # Nginx
24+
config.vm.network :forwarded_port, guest: 3306, host: 3307 # MySQL
25+
config.vm.network :forwarded_port, guest: 3000, host: 3001 # Development Puma
26+
27+
# Share an additional folder to the guest VM. The first argument is
28+
# the path on the host to the actual folder. The second argument is
29+
# the path on the guest to mount the folder. And the optional third
30+
# argument is a set of non-required options.
31+
# config.vm.synced_folder "../data", "/vagrant_data"
32+
33+
config.vm.provision :chef_solo do |chef|
34+
35+
chef.json = {
36+
:mysql => {
37+
:server_root_password => 'rootpass',
38+
:server_debian_password => 'debpass',
39+
:server_repl_password => 'replpass',
40+
:bind_address => 'localhost'
41+
},
42+
:gitlab => {
43+
:mysql_password => 'k09vw7wa5s'
44+
}
45+
}
46+
47+
chef.add_recipe "gitlab::ruby_build"
48+
chef.add_recipe "gitlab::default"
49+
chef.add_recipe "gitlab::nginx"
50+
end
51+
end

0 commit comments

Comments
 (0)