-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
49 lines (40 loc) · 2.2 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
#
Vagrant.configure("2") do |config|
config.vm.define :guest do |guest_config|
guest_config.vm.box = "precise64"
guest_config.vm.box_url = "http://files.vagrantup.com/precise64.box"
guest_config.ssh.forward_agent = true
#HostManager Start
guest_config.hostmanager.enabled = true
guest_config.hostmanager.manage_host = false
guest_config.hostmanager.ignore_private_ip = true
guest_config.hostmanager.include_offline = true
#HostManager Finish
#guest_config.librarian_puppet.puppetfile_dir = "puppet"
# This will give the machine a static IP uncomment to enable
guest_config.vm.network :private_network, ip: "192.168.33.50"
#virtualbox__intnet: true
guest_config.vm.network "public_network"
guest_config.vm.network :forwarded_port, guest: 80, host: 8888, auto_correct: true
guest_config.vm.network :forwarded_port, guest: 3306, host: 8889, auto_correct: true
guest_config.vm.network :forwarded_port, guest: 5432, host: 5433, auto_correct: true
guest_config.vm.network :forwarded_port, guest: 27017, host: 8887, auto_correct: true
guest_config.vm.hostname = "TFG"
guest_config.hostmanager.aliases = %w(local.participants.com)
guest_config.vm.synced_folder "./","/var/www", {:mount_options => ['dmode=777','fmode=777']}
guest_config.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--memory", "512"]
end
guest_config.vm.provision :puppet do |puppet|
puppet.manifests_path = "vagrant/provision/puppet/manifests"
puppet.manifest_file = "site.pp"
puppet.module_path = ["vagrant/provision/puppet/modules","vagrant/provision/puppet/modules_contrib"]
puppet.options = "--verbose --debug"
end
guest_config.vm.provision :hostmanager
#guest_config.vm.provision :shell, :path => "provision/shell/composer.sh"
end
end