Skip to content

Commit

Permalink
Cleaned up recipe. Removed gem update and rvm stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
mraaroncruz committed Apr 18, 2012
1 parent 7dfdc69 commit b321d38
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
9 changes: 8 additions & 1 deletion README.markdown
@@ -1,2 +1,9 @@
bootstrap files borrowed (stolen) from this tutorial
[Chef Solo tutorial](http://opinionatedprogrammer.com/2011/06/chef-solo-tutorial-managing-a-single-server-with-chef/#comment-910)
[Chef Solo tutorial](http://opinionatedprogrammer.com/2011/06/chef-solo-tutorial-managing-a-single-server-with-chef/#comment-910)

If you are using this and you would like features added, create an issue or pull request (preferrably on a topic branch you have created in your fork)

#### Todo

* rbenv and ruby 1.9.3+
* zsh, maybe with my .oh-my-zsh repo
39 changes: 16 additions & 23 deletions cookbooks/pferdefleisch/recipes/default.rb
@@ -1,33 +1,26 @@
# execute "apt-get update" do
# user 'root'
# end
# this is because my dns was messed up in my vagrant box
execute "apt-get update" do
user 'root'
end

# what is below exists because my dns was messed up in my vagrant box
# i set the dns to 8.8.8.8, google's dns
# comment out if you don't need
cookbook_file "/etc/resolv.conf" do
source 'resolve.conf'
owner 'root'
group 'root'
end
#
# Edit: This has been unnecessary for me lately but
# I will leave it in until the next release
#
#cookbook_file "/etc/resolv.conf" do
#source 'resolve.conf'
#owner 'root'
#group 'root'
#end

%w[wget curl git-core build-essential vim-nox nginx imagemagick].each do |pkg|
%w[wget curl git-core build-essential vim-nox nginx].each do |pkg|
package pkg do
action :install
end
end

# this is my default install, the best rvm cookbook i've found is at
# https://github.com/fnichol/chef-rvm
# this installs system rvm so at /usr/local/rvm instead of ~/.rvm

# include_recipe "rvm::system"

# execute 'update rubygems' do
# user 'root'
# command 'gem update --system'
# action :run
# end

cookbook_file "/home/#{node[:user]}/.vimrc" do
source 'vimrc'
owner node[:user]
Expand All @@ -42,4 +35,4 @@
owner node[:user]
group node[:user]
mode '0755'
end
end

0 comments on commit b321d38

Please sign in to comment.