Add new Redis cookbook

This commit is contained in:
2021-11-16 13:25:30 -06:00
parent 80ec84782b
commit 18f65c4fc5
66 changed files with 5780 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
if node['redisio']['package_install']
package 'redisio_package_name' do
package_name node['redisio']['package_name']
version node['redisio']['version'] if node['redisio']['version']
action :install
end
else
include_recipe 'redisio::_install_prereqs'
build_essential 'install build deps'
redis = node['redisio']
location = "#{redis['mirror']}/#{redis['base_name']}#{redis['version']}.#{redis['artifact_type']}"
redisio_install 'redis-installation' do
version redis['version'] if redis['version']
download_url location
safe_install redis['safe_install']
install_dir redis['install_dir'] if redis['install_dir']
end
end
include_recipe 'redisio::ulimit'