]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/web/recipes/base.rb
Suppress mounting of /store/rails when GPX data is offline
[chef.git] / 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"