Skip to content

Commit

Permalink
add vagrant support
Browse files Browse the repository at this point in the history
  • Loading branch information
fygrave committed Jun 20, 2014
1 parent 423b4db commit 49da9a3
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Cheffile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# encoding: utf-8

site 'http://community.opscode.com/api/v1'

cookbook "apt"
cookbook "python", {}
cookbook "redis", {:github=>"ctrabold/chef-redis"}
30 changes: 30 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# encoding: utf-8
# This file originally created at http://rove.io/856c5741d1974652dde32a9fa6fbfc0a

# -*- 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 'python'
chef.add_recipe 'redis'
chef.json = {
:redis => {
:bind => "127.0.0.1",
:port => "6379",
:config_path => "/etc/redis/redis.conf",
:daemonize => "yes",
:timeout => "300",
:loglevel => "notice"
}
}
end
end

0 comments on commit 49da9a3

Please sign in to comment.