From: Tom Hughes Date: Sun, 5 Jul 2020 09:30:04 +0000 (+0100) Subject: Suppress mounting of /store/rails when GPX data is offline X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/73b9c431e43b14345774cc6a508aa326b45f900c?hp=4f21b7e35e41f1a7e0d9dc1bf8e82c6ab6df784b Suppress mounting of /store/rails when GPX data is offline --- 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"