-
Notifications
You must be signed in to change notification settings - Fork 3
/
Vagrantfile
39 lines (31 loc) · 964 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
36
37
38
39
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Where is this file located?
require 'pathname'
whereami = File.dirname(Pathname.new(__FILE__).realpath)
# Proceed with vagrant configuration.
Vagrant.require_version '>= 1.5.1'
Vagrant.configure('2') do |config|
config.vm.define 'trusty', primary: true do |trusty|
trusty.vm.box = 'ubuntu/trusty64'
trusty.vm.hostname = 'minecraft'
trusty.vm.network :private_network,
ip: '33.33.33.10'
trusty.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", '2048']
end
end
config.ssh.forward_agent = true
config.vm.provision 'ansible' do |ansible|
ansible.extra_vars = {
'ansible_sudo' => true,
'development' => true,
'target_hosts' => 'vagrant',
'target_user' => 'vagrant',
'vagrant' => true,
'vagrant_host_user' => ENV['USER'],
}
ansible.playbook = whereami + '/playbook.yml'
ansible.verbose = 'v'
end
end