-
Notifications
You must be signed in to change notification settings - Fork 11
/
Vagrantfile.ubuntu
51 lines (42 loc) · 1.93 KB
/
Vagrantfile.ubuntu
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# This Vagrant file helps the development of the cookbook.
# It installs and configures the official v5.2.0 version from https://github.com/gitlabhq/gitlabhq,
# runs it in production mode and serves it through an nginx proxy on localhost:8080.
Vagrant.configure("2") do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
config.berkshelf.enabled = true
config.vm.hostname = "gitlab"
# Standard Ubuntu 12.04.2 base box
config.vm.box = "ubuntu-12.04.2-amd64"
config.vm.box_url = "https://dl.dropbox.com/u/2894322/ubuntu-12.04.2-amd64.box"
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
config.vm.network :forwarded_port, guest: 80, host: 8080 # Nginx
config.vm.network :forwarded_port, guest: 3306, host: 3307 # MySQL
config.vm.network :forwarded_port, guest: 3000, host: 3001 # Development Puma
# Share an additional folder to the guest VM. The first argument is
# the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
# config.vm.synced_folder "../data", "/vagrant_data"
config.vm.provision :chef_solo do |chef|
chef.json = {
:mysql => {
:server_root_password => 'rootpass',
:server_debian_password => 'debpass',
:server_repl_password => 'replpass',
:bind_address => 'localhost'
},
:gitlab => {
:mysql_password => 'k09vw7wa5s'
}
}
chef.add_recipe "gitlab::ruby_build"
chef.add_recipe "gitlab::default"
chef.add_recipe "gitlab::nginx"
end
end