forked from bryannielsen/Laravel4-Vagrant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
30 lines (26 loc) · 1.29 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
#require "#{File.dirname(__FILE__)}/vagrant/artisan.rb"
#require "#{File.dirname(__FILE__)}/vagrant/composer.rb"
Vagrant::Config.run do |config|
config.vm.define :laravel4 do |lv4_config|
lv4_config.vm.box = "precise32"
lv4_config.vm.box_url = "http://files.vagrantup.com/precise32.box"
#lv4_config.vm.customize ["modifyvm", :id, "--rtcuseutc", "on"]
lv4_config.ssh.max_tries = 10
lv4_config.vm.forward_port 80, 8888
lv4_config.vm.forward_port 3306, 8889
lv4_config.vm.forward_port 5432, 5433
lv4_config.vm.host_name = "laravel"
lv4_config.vm.share_folder("www", "/var/www", "./www", :extra => 'dmode=777,fmode=777')
lv4_config.vm.provision :shell, :inline => "echo \"America/New_York\" | sudo tee /etc/timezone && dpkg-reconfigure --frontend noninteractive tzdata"
lv4_config.vm.provision :puppet do |puppet|
puppet.manifests_path = "puppet/manifests"
puppet.manifest_file = "phpbase.pp"
puppet.module_path = "puppet/modules"
#puppet.options = "--verbose --debug"
#puppet.options = "--verbose"
end
lv4_config.vm.provision :shell, :path => "puppet/scripts/enable_remote_mysql_access.sh"
end
end