-
Notifications
You must be signed in to change notification settings - Fork 14
/
Vagrantfile
29 lines (24 loc) · 1.01 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
# Customize memory
config.vm.customize ["modifyvm", :id, "--memory", "256"]
config.vm.provision :shell, :inline => "[ -f /tmp/updated ] || apt-get update && touch /tmp/updated"
config.vm.provision :puppet do |puppet|
puppet.manifests_path = "manifests"
puppet.module_path = "../"
puppet.manifest_file = "site.pp"
puppet.options = "--verbose"
end
config.vm.define :couchdb do |couchdb_config|
couchdb_config.vm.host_name = "couchdb"
couchdb_config.vm.network :hostonly, "192.168.33.10"
couchdb_config.vm.forward_port 5984, 5984
end
end