Permalink
Browse files

Ditto for Redis

  • Loading branch information...
1 parent 83b60ea commit 014af1290417af8154bb3c02b7b5a0613dbfacdd @michaelklishin michaelklishin committed Oct 3, 2012
Showing with 8 additions and 2 deletions.
  1. +3 −0 ci_environment/redis/attributes/default.rb
  2. +5 −2 ci_environment/redis/recipes/default.rb
View
3 ci_environment/redis/attributes/default.rb
@@ -3,5 +3,8 @@
default[:redis] = {
:package => {
:url => "http://files.travis-ci.org/packages/deb/redis/redis-server_2.4.16-1~dotdeb.0_#{arch}.deb"
+ },
+ :service => {
+ :enabled => false
}
}
View
7 ci_environment/redis/recipes/default.rb
@@ -59,7 +59,10 @@
service "redis-server" do
supports :restart => true, :status => true, :reload => true
- # intentionally disabled on boot. MK.
- action [:disable, :start]
+ if node.redis.service.enabled
+ action [:enable, :start]
+ else
+ action [:disable, :start]
+ end
end
end # case

0 comments on commit 014af12

Please sign in to comment.