From a532fdb8f54a5ded5018a06dadf54378077256d4 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 22 Jul 2020 11:01:21 +0100 Subject: [PATCH] Only set the memcached IP address on backends --- cookbooks/web/attributes/default.rb | 2 -- cookbooks/web/recipes/backend.rb | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbooks/web/attributes/default.rb b/cookbooks/web/attributes/default.rb index d842b2d00..7c995d9d8 100644 --- a/cookbooks/web/attributes/default.rb +++ b/cookbooks/web/attributes/default.rb @@ -4,5 +4,3 @@ default[:web][:log_directory] = "/var/log/web" default[:web][:primary_cluster] = false default[:accounts][:users][:rails][:status] = :role - -override[:memcached][:ip_address] = node.internal_ipaddress diff --git a/cookbooks/web/recipes/backend.rb b/cookbooks/web/recipes/backend.rb index 4c7bb9c1c..50e84c9df 100644 --- a/cookbooks/web/recipes/backend.rb +++ b/cookbooks/web/recipes/backend.rb @@ -17,6 +17,8 @@ # limitations under the License. # +node.default[:memcached][:ip_address] = node.internal_ipaddress + include_recipe "memcached" include_recipe "apache" include_recipe "web::rails" -- 2.39.5