Skip to content

Instantly share code, notes, and snippets.

@ardell
Created January 19, 2012 16:29
Show Gist options
  • Save ardell/1641010 to your computer and use it in GitHub Desktop.
Save ardell/1641010 to your computer and use it in GitHub Desktop.
Chef secure_package resource
define :secure_package, :name => nil do
ruby_block "Check dependencies" do
raise "Variable name cannot be nil" if params[:name] == nil
end
execute "sudo yum -d0 -e0 -y install #{params[:name]}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment