-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVagrantfile
35 lines (28 loc) · 1.23 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
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
# Add your Laravel app here
#config.vm.synced_folder "../path/to/my/app", "/srv/app"
# Web - development site
config.vm.network :forwarded_port, guest: 80, host: 8500, auto_correct: true
# Beanstalkd Console
config.vm.network :forwarded_port, guest: 8501, host: 8501, auto_correct: true
# Redis Commander
config.vm.network :forwarded_port, guest: 8502, host: 8502, auto_correct: true
config.vm.network :private_network, ip: "192.168.33.10"
config.vm.provider :virtualbox do |vb|
# Use VBoxManage to customize the VM. For example to change memory:
vb.customize ["modifyvm", :id, "--memory", "1024"]
end
# If Ansible is not installed on the host (i.e. Windows), we install it
# on the guest and then provision it locally.
if Vagrant::Util::Platform.windows?
config.vm.provision :shell, path: "install_ansible_guest.sh"
config.vm.provision :shell, inline: "sudo -i ansible-playbook --connection=local /vagrant/playbook.yml"
else
config.vm.provision :ansible do |ansible|
ansible.playbook = "playbook.yml"
end
end
end