]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/web/recipes/frontend.rb
iRun memcached on locahost if there is no internal address
[chef.git] / cookbooks / web / recipes / frontend.rb
index 8104304d93f50b9c6a11ec6e100ab2a0578df2ce..4fa375fba70020f3420546c3aa15cbd98c9d0650 100644 (file)
@@ -17,7 +17,7 @@
 # limitations under the License.
 #
 
-node.default[:memcached][:ip_address] = node.internal_ipaddress
+node.default[:memcached][:ip_address] = node.internal_ipaddress || "127.0.0.1"
 
 include_recipe "memcached"
 include_recipe "apache"