forked from voxpupuli/puppet-gitlab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
54 lines (44 loc) · 2.21 KB
/
Vagrantfile
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
54
# -*- mode: ruby -*-
# vi: set ft=ruby :
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.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--memory", 1024]
vb.customize ["modifyvm", :id, "--cpus", "2"]
vb.customize ["modifyvm", :id, "--ioapic", "on"] #http://geekbacon.com/2013/02/26/cannot-set-more-than-1-cpu-in-vagrant/
end
config.vm.hostname ="gitlab-test"
config.vm.network :private_network, ip: "192.168.33.10"
config.vm.synced_folder ".", "/etc/puppet/modules/gitlab"
# Add the puppetlabs stdlib module
# Install it to non default path, since /etc/puppet/modules is linked to the host file system
config.vm.provision "shell",
inline: "puppet module install puppetlabs/stdlib --modulepath=/usr/share/puppet/modules"
# Centos 6
config.vm.define "centos", primary: true do |centosbox|
centosbox.vm.box = "centos-6_5-x64-virtualbox_4_3-plain"
centosbox.vm.box_url = "http://puppet-vagrant-boxes.puppetlabs.com/centos-65-x64-virtualbox-puppet.box"
end
# Ubuntu 12.04
config.vm.define "ubuntu", autostart: false do |ubuntubox|
ubuntubox.vm.box = "ubuntu-12_04-x64-virtualbox_4_2_10-plain"
ubuntubox.vm.box_url = "http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210.box"
end
# Sles 11 SP1
config.vm.define "sles", autostart: false do |slesbox|
slesbox.vm.box = "sles-11_sp1-x64-virtualbox_4_2_10-plain"
slesbox.vm.box_url = "http://puppet-vagrant-boxes.puppetlabs.com/sles-11sp1-x64-vbox4210.box"
end
# Debian 7
config.vm.define "debian", autostart: false do |debianbox|
debianbox.vm.box = "debian-7_3-x64-virtualbox_4_3-plain"
debianbox.vm.box_url = "http://puppet-vagrant-boxes.puppetlabs.com/debian-73-x64-virtualbox-puppet.box"
end
# Oracle Linux 6.5
config.vm.define "oraclelinux6", autostart: false do |oraclelinuxbox|
oraclelinuxbox.vm.box = "oraclelinux-6_5-x64-virtualbox_4_3-plain"
oraclelinuxbox.vm.box_url = "https://storage.us2.oraclecloud.com/v1/istoilis-istoilis/vagrant/oel65-64.box"
end
end