forked from joindin/joindin-web2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
43 lines (34 loc) · 1.46 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
# Define an differently named box for responsive site
config.vm.define :joindin_responsive do |ji_config|
ji_config.vm.box = 'centos-62-64-puppet'
ji_config.vm.box_url = 'http://packages.vstone.eu/vagrant-boxes/centos/6.2/centos-6.2-64bit-puppet-vbox.4.1.12.box'
ji_config.vm.host_name = "joindin.local"
# Forward a port from the guest to the host, which allows for outside
# computers to access the VM, whereas host only networking does not.
ji_config.vm.forward_port 80, 8008
# Share an additional folder to the guest VM. The first argument is
# an identifier, the second is the path on the guest to mount the
# folder, and the third is the path on the host to the actual folder.
# config.vm.share_folder "v-data", "/vagrant_data", "../data"
# Use :gui for showing a display for easy debugging of vagrant
ji_config.vm.boot_mode = :gui
# Create a network for the vms. This will allow the responsive VM
# to see this one
ji_config.vm.network :hostonly, "192.168.57.6"
# Provision the VM with Puppet
ji_config.vm.provision :puppet do |puppet|
puppet.manifests_path = "puppet/manifests"
puppet.module_path = "puppet/modules"
puppet.manifest_file = "joindin.pp"
puppet.options = [
'--verbose',
# '--debug',
# '--graph',
# '--graphdir=/vagrant/puppet/graphs'
]
end
end
end