-
Notifications
You must be signed in to change notification settings - Fork 30
/
Vagrantfile
30 lines (23 loc) · 950 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
# -*- 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.10"
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--memory", "2014"]
end
# config.vm.provision :shell, inline: $script
config.vm.provision :ansible do |ansible|
ansible.verbose = 'vv'
ansible.ask_vault_pass = true
ansible.playbook = 'playbooks/vagrant.yml'
ansible.limit = 'all'
end
end