chef/cookbooks/redisio/recipes/disable_os_default.rb
Greg Karékinian 6116729907 Set up Redis using the latest version of redisio
This replaces the deprecated redis cookbook. Compiles the latest version
of Redis, currently 7.0.11

Refs #488
2023-06-19 16:02:58 +02:00

13 lines
312 B
Ruby

# disable the default OS redis init script
service_name = case node['platform_family']
when 'debian'
'redis-server'
when 'rhel', 'fedora'
'redis'
end
service service_name do
action [:stop, :disable]
only_if { service_name }
end