diff --git a/Cheffile b/Cheffile new file mode 100644 index 0000000..8ee6009 --- /dev/null +++ b/Cheffile @@ -0,0 +1,7 @@ +# encoding: utf-8 + +site 'http://community.opscode.com/api/v1' + +cookbook "apt" +cookbook "python", {} +cookbook "redis", {:github=>"ctrabold/chef-redis"} diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 0000000..708c7ed --- /dev/null +++ b/Vagrantfile @@ -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