]> git.openstreetmap.org Git - chef.git/commitdiff
iRun memcached on locahost if there is no internal address
authorTom Hughes <tom@compton.nu>
Thu, 10 Sep 2020 07:14:19 +0000 (08:14 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 10 Sep 2020 07:14:59 +0000 (08:14 +0100)
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"