-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
36 lines (31 loc) · 995 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
# encoding: utf-8
# This file originally created at http://rove.io/470c28a91d1e5b5b2f4aa39384561543
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "opscode-ubuntu-12.04_chef-11.4.0"
config.vm.box_url = "https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_chef-11.4.0.box"
config.ssh.forward_agent = true
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = ["cookbooks"]
chef.add_recipe :apt
chef.add_recipe 'nodejs'
chef.add_recipe 'redis'
chef.add_recipe 'mongodb::default'
chef.json = {
:redis => {
:bind => "127.0.0.1",
:port => "6379",
:config_path => "/etc/redis/redis.conf",
:daemonize => "yes",
:timeout => "300",
:loglevel => "notice"
},
:mongodb => {
:dbpath => "/var/lib/mongodb",
:logpath => "/var/log/mongodb",
:port => "27017"
}
}
end
end