-
Notifications
You must be signed in to change notification settings - Fork 14
/
Vagrantfile
27 lines (21 loc) · 960 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
VAGRANTFILE_API_VERSION = "2"
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",
"phpmyadmin.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.post_up_message = "\n\nProvisioning is done, visit http://app.dev for your CakePHP application! \n\nVisit http://phpmyadmin.app.dev for phpMyAdmin (MySQl credentials are root:temppassword).\n\n"
end