Add new Redis cookbook
This commit is contained in:
18
cookbooks/redisio/recipes/_install_prereqs.rb
Normal file
18
cookbooks/redisio/recipes/_install_prereqs.rb
Normal file
@@ -0,0 +1,18 @@
|
||||
packages_to_install = case node['platform']
|
||||
when 'debian', 'ubuntu'
|
||||
%w(
|
||||
tar
|
||||
)
|
||||
when 'redhat', 'centos', 'fedora', 'scientific', 'suse', 'amazon'
|
||||
%w(
|
||||
tar
|
||||
)
|
||||
else
|
||||
%w()
|
||||
end
|
||||
|
||||
packages_to_install.each do |pkg|
|
||||
package pkg do
|
||||
action :install
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user