forked from Tohmua/vagrant-ansible-centos6-LNMP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
25 lines (20 loc) · 764 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.define "default" do |default|
default.vm.box = "centos/6"
default.vm.network "forwarded_port", guest: 3306, host: 6612
default.vm.network :private_network, ip: "192.168.33.35"
default.vm.synced_folder "www/", "/vagrant", type: "nfs"
default.vm.provider "virtualbox" do |v|
v.memory = 2048
v.customize [ "guestproperty", "set", :id, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold", 10000 ]
end
default.vm.provision "ansible" do |ansible|
ansible.compatibility_mode = "2.0"
ansible.playbook = "ansible/install.yml"
ansible.inventory_path = "ansible/hosts"
ansible.verbose = true
end
end
end