-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathVagrantfile
36 lines (29 loc) · 1.37 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
34
35
36
# -*- 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
v.cpus = 2
end
# Allow the project directory to be accessible inside the Vagrant box.
# This should match the Ansible host_vars/vagrant synced_folder value.
config.vm.synced_folder '.', '/mnt/vagrant'
# Ideally, this IP will be unique, so the entry added to /etc/hosts won't
# conflict with that of another project.
config.vm.network :private_network, ip: '192.168.33.2'
# Automatically add an entry to /etc/hosts for this Vagrant box (requires
# sudo). This should match the Ansible host_vars/vagrant site_fqdn value.
config.hostsupdater.aliases = ['tessel-io.loc']
# A specific name looks much better than "default" in ansible output.
config.vm.define 'vagrant'
# The Vagrant ansible provisioner is used here for convenience. Instead of
# the following code, the Vagrant box may be provisioned manually with
# ansible-playbook (like in production), but adding this code saves the
# trouble of having to run ansible-playbook manually after "vagrant up".
config.vm.provision 'ansible' do |ansible|
# Run init playbook (which runs base, configure, vagrant-link playbooks).
ansible.playbook = 'deploy/ansible/init.yml'
end
end