Skip to content

Instantly share code, notes, and snippets.

@bryanwb
Last active December 14, 2015 09:09
Show Gist options
  • Save bryanwb/5063043 to your computer and use it in GitHub Desktop.
Save bryanwb/5063043 to your computer and use it in GitHub Desktop.
idea for resources in chef-stage
stage "nokogiri_deps" do
resources do
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
# let's assume w/ chef-stage that chef-gem runs during the specified stage and not immediately as it does currently
chef_gem "nokogiri"
end
order 0 # run before main converge pass
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment