]> git.openstreetmap.org Git - chef.git/commitdiff
Suppress mounting of /store/rails when GPX data is offline
authorTom Hughes <tom@compton.nu>
Sun, 5 Jul 2020 09:30:04 +0000 (10:30 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 5 Jul 2020 09:30:04 +0000 (10:30 +0100)
cookbooks/web/recipes/base.rb

index 450b35138a75b7cd77935b06efc4b26df7367ecd..29b3ffa438aea256979f26a855963766d4183b53 100644 (file)
 # 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"