-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVagrantfile
33 lines (25 loc) · 992 Bytes
/
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
VAGRANTFILE_API_VERSION = "2"
# Basado en https://github.com/FriendsOfCake/vagrant-ansible
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "trusty64"
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box"
config.vm.network "private_network", ip: "192.168.13.37"
config.vm.hostname = "appdev"
#Add any alias:
config.hostsupdater.aliases = [
"app.dev"
]
config.vm.synced_folder ".", "/vagrant", :nfs => true
#Fix for Ansible bug resulting in an encoding error
ENV['PYTHONIOENCODING'] = "utf-8"
config.vm.provision "ansible" do |ansible|
ansible.limit = 'all'
ansible.playbook = "ansible/development.yml"
ansible.inventory_path = "ansible/hosts"
end
# config.vm.provider "virtualbox" do |v|
# v.memory = 512
# v.cpus = 1
# end
config.vm.post_up_message = "\n\nProvisioning is done, visit http://app.dev for your PHP application!\n\n"
end