-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
33 lines (25 loc) · 1.03 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
$script = <<SCRIPT
echo "Use 163 mirrors."
echo "deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse" > /etc/apt/sources.list
echo "deb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse" >> /etc/apt/sources.list
echo "deb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse" >> /etc/apt/sources.list
SCRIPT
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.box_check_update = false
config.vm.network "private_network", ip: "192.168.30.12"
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--memory", "2014"]
end
config.vm.synced_folder "../zerqu", "/var/zerqu/src"
config.vm.synced_folder "../zerqu", "/home/vagrant/zerqu"
# config.vm.provision :shell, inline: $script
config.vm.provision :ansible do |ansible|
ansible.verbose = 'vv'
ansible.ask_vault_pass = true
ansible.playbook = 'vagrant.yml'
ansible.limit = 'all'
end
end