diff --git a/.gitignore b/.gitignore index 303e0e4..d63a2cc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ .vagrant Berksfile.lock +Cheffile.lock +/tmp /cookbooks \ No newline at end of file diff --git a/Cheffile b/Cheffile new file mode 100644 index 0000000..8adec70 --- /dev/null +++ b/Cheffile @@ -0,0 +1,14 @@ +#!/usr/bin/env ruby +#^syntax detection +site 'http://community.opscode.com/api/v1' + +cookbook 'apache2' +cookbook 'apt' +cookbook 'build-essential' +cookbook 'dotdeb', :git => 'git://github.com/homemade/chef-dotdeb.git' +cookbook 'memcached' +cookbook 'mysql' +cookbook 'openssl' +cookbook 'php' +cookbook 'postfix' +cookbook 'app', :path => './site-cookbooks/app' \ No newline at end of file diff --git a/Vagrantfile b/Vagrantfile index 4127c69..4ef760f 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -3,7 +3,8 @@ Vagrant.configure("2") do |config| # Enable Berkshelf support - config.berkshelf.enabled = true + # config.berkshelf.enabled = true + # Define VM box to use config.vm.box = "precise32" @@ -25,6 +26,10 @@ Vagrant.configure("2") do |config| # Enable and configure chef solo config.vm.provision :chef_solo do |chef| + + # Set cookbooks_path if using Librarian-Chef (https://github.com/applicationsonline/librarian-chef) + chef.cookbooks_path = "cookbooks" + chef.add_recipe "app::packages" chef.add_recipe "app::web_server" chef.add_recipe "app::vhost"