Created
January 19, 2012 16:29
-
-
Save ardell/1641010 to your computer and use it in GitHub Desktop.
Chef secure_package resource
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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