-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
25 lines (23 loc) · 820 Bytes
/
Vagrantfile
File metadata and controls
25 lines (23 loc) · 820 Bytes
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 :
require 'yaml'
settings = YAML.load_file 'vagrantConfig.yml'
Vagrant.configure(2) do |config|
config.vm.define "frontend" do |frontend|
frontend.vm.synced_folder "sharedDir", "/vagrant", type: "rsync", rsync__exclude: [".git/", "node_modules/"]
frontend.ssh.username = 'vagrant'
frontend.vm.box = "ubuntu/trusty64"
frontend.vm.network "public_network", ip: settings['frontend']['ip'], bridge: settings['bridge']
frontend.vm.provider "virtualbox" do |v|
v.memory = 1024
v.cpus = 2
end
end
config.vm.provision :ansible do |ansible|
ansible.verbose = "vvvv"
ansible.playbook = "site.yml"
ansible.host_key_checking = false
ansible.inventory_path = "ansible_static_inventory"
config.ssh.forward_agent = true
end
end