Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ditto for Redis

  • Loading branch information...
commit 014af1290417af8154bb3c02b7b5a0613dbfacdd 1 parent 83b60ea
@michaelklishin michaelklishin authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.