From 73b9c431e43b14345774cc6a508aa326b45f900c Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 5 Jul 2020 10:30:04 +0100 Subject: [PATCH] Suppress mounting of /store/rails when GPX data is offline --- cookbooks/web/recipes/base.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/cookbooks/web/recipes/base.rb b/cookbooks/web/recipes/base.rb index 450b35138..29b3ffa43 100644 --- a/cookbooks/web/recipes/base.rb +++ b/cookbooks/web/recipes/base.rb @@ -17,10 +17,12 @@ # limitations under the License. # -node.default[:nfs]["/store/rails"] = { - :host => node[:web][:fileserver], - :path => "/store/rails" -} +unless node[:web][:status] == "gpx_offline" + node.default[:nfs]["/store/rails"] = { + :host => node[:web][:fileserver], + :path => "/store/rails" + } +end include_recipe "accounts" include_recipe "nfs" -- 2.45.1