forked from tschellenbach/Django-facebook
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
40 lines (34 loc) · 960 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
40
# -*- mode: ruby -*-
# vi: set ft=ruby :
require 'rubygems'
require 'json'
def configure_box(index, config)
name = "local_dev-#{index}".intern
config.vm.customize ["modifyvm", :id, "--memory", 1024*2]
ip = "192.168.50.42"
config.vm.define name do |slave_conf|
slave_conf.vm.box = "precise64"
slave_conf.vm.box_url = "http://files.vagrantup.com/precise64.box"
slave_conf.vm.network :hostonly, ip
slave_conf.vm.provision :puppet do |puppet|
puppet.manifests_path = "djfbdev/puppet/manifests"
puppet.module_path = "djfbdev/puppet/modules"
puppet.manifest_file = "local_dev.pp"
puppet.options = "--verbose --debug"
facts = {
:ec2_userdata => {
:role => 'local_dev',
:environment => 'development'
}.to_json,
:vagrant => true,
:ip => ip
}
puppet.facter = facts
end
end
end
Vagrant::Config.run do |config|
1.times do |i|
configure_box(i, config)
end
end