-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
29 lines (24 loc) · 868 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provider "virtualbox" do |v|
v.memory = 1024
end
config.vm.provision "ansible" do |ansible|
ansible.playbook = "base.yml"
ansible.inventory_path = "dev"
ansible.host_key_checking = false
ansible.extra_vars = { 'ansible_connection' => 'ssh',
'ansible_ssh_args' => '-o ForwardAgent=yes'
}
ansible.raw_ssh_args = ['-o UserKnownHostsFile=/dev/null', '-o StrictHostKeyChecking=false']
end
config.ssh.forward_agent = true
config.vm.network "private_network", type: "dhcp"
# Create a base machine
config.vm.define "base" do |base|
base.vm.network :forwarded_port, host: 8080, guest: 8080
end
end