Skip to content

Instantly share code, notes, and snippets.

@ranjib
Forked from bryanwb/gist:5063043
Last active December 14, 2015 09:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ranjib/5063067 to your computer and use it in GitHub Desktop.
Save ranjib/5063067 to your computer and use it in GitHub Desktop.
# cookbooks/nokogiri/recipes/default.rb
stage "install_deps" do
run_list "recipe[nokogiri::deps]"
end
stage "install_gem" do
run_list "recipe[nokogiri::gem]"
end
include_recipe "yumrepo::epel" # you can't do shit on rhel w/out epel repo first installed
%w{ libxslt libxml2 libxml2-devel libxslt-devel }.each do |pkg|
package pkg
end
chef_gem "nokogiri"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment