-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathVagrantfile
35 lines (26 loc) · 884 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
34
35
# Vagrantfile API/syntax version. Don'ddt touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise32"
config.vm.box_url = "http://files.vagrantup.com/precise32.box"
config.vm.network "public_network"
config.vm.network "forwarded_port", guest: 8080, host: 8080
config.vm.define "localhost" do |precise|
precise.vm.hostname = "localhost"
end
config.vm.provider :virtualbox do |vb|
vb.name = "precise"
end
# This should already be in the box.
$script = <<SCRIPT
apt-get update
apt-get -qq install python python-pycurl python-apt
SCRIPT
config.vm.provision "shell", inline: $script
config.vm.provision "ansible" do |ansible|
ansible.sudo = true
ansible.playbook = "role.yml"
ansible.verbose = "v"
ansible.host_key_checking = false
end
end