Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
[dev_setup] install redis along with cc
Browse files Browse the repository at this point in the history
Change-Id: I6dcc5b95a624569d4f3616c6d12d8dd8d45d5263
  • Loading branch information
Haipeng Wu committed Sep 27, 2012
1 parent 8a51384 commit a023a09
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 23 deletions.
3 changes: 3 additions & 0 deletions dev_setup/cookbooks/cloud_controller/attributes/default.rb
Expand Up @@ -34,3 +34,6 @@
default[:capacity][:max_uris] = 4
default[:capacity][:max_services] = 16
default[:capacity][:max_apps] = 20

default[:vcap_redis][:port] = "5454"
default[:vcap_redis][:password] = "PoIxbL98RWpwBuUJvKNojnpIcRb1ot2"
20 changes: 20 additions & 0 deletions dev_setup/cookbooks/cloud_controller/recipes/default.rb
Expand Up @@ -40,6 +40,26 @@

cf_pg_reset_user_password(:ccdb)


template "vcap_redis.conf" do
path File.join(node[:deployment][:config_path], "vcap_redis.conf")
source "vcap_redis.conf.erb"
owner node[:deployment][:user]
mode 0644
end

template "vcap_redis" do
path File.join("", "etc", "init.d", "vcap_redis")
source "vcap_redis.erb"
owner node[:deployment][:user]
mode 0755
end

service "vcap_redis" do
supports :status => true, :restart => true, :reload => true
action [ :enable, :restart ]
end

staging_dir = File.join(node[:deployment][:config_path], "staging")
node[:cloud_controller][:staging].each_pair do |framework, config|
template config do
Expand Down
3 changes: 0 additions & 3 deletions dev_setup/cookbooks/stager/attributes/default.rb
@@ -1,7 +1,4 @@
default[:stager][:config_file] = "stager.yml"

default[:vcap_redis][:port] = "5454"
default[:vcap_redis][:password] = "PoIxbL98RWpwBuUJvKNojnpIcRb1ot2"

# Staging
default[:stager][:platform] = "platform.yml"
19 changes: 0 additions & 19 deletions dev_setup/cookbooks/stager/recipes/default.rb
Expand Up @@ -14,25 +14,6 @@
mode 0644
end

template "vcap_redis.conf" do
path File.join(node[:deployment][:config_path], "vcap_redis.conf")
source "vcap_redis.conf.erb"
owner node[:deployment][:user]
mode 0644
end

template "vcap_redis" do
path File.join("", "etc", "init.d", "vcap_redis")
source "vcap_redis.erb"
owner node[:deployment][:user]
mode 0755
end

service "vcap_redis" do
supports :status => true, :restart => true, :reload => true
action [ :enable, :restart ]
end

template node[:stager][:platform] do
path File.join(node[:deployment][:config_path], node[:stager][:platform])
source "platform.yml.erb"
Expand Down
1 change: 1 addition & 0 deletions dev_setup/roles/cloud_controller.json
Expand Up @@ -10,6 +10,7 @@
"recipe[ruby]",
"recipe[ruby::ruby18]",
"recipe[nginx]",
"recipe[redis]",
"recipe[ccdb]",
"recipe[cloud_controller]"]
}
1 change: 0 additions & 1 deletion dev_setup/roles/stager.json
Expand Up @@ -8,7 +8,6 @@
"run_list" : [ "recipe[deployment]",
"recipe[essentials]",
"recipe[ruby]",
"recipe[redis]",
"recipe[stager]",
"recipe[imagemagick]"]
}

0 comments on commit a023a09

Please sign in to comment.