]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nfs/recipes/server.rb
Disable gpximport, statistics and cleanup roles on spike-04
[chef.git] / cookbooks / nfs / recipes / server.rb
index f75e44e889880f920f4db5986f4fbd332ef4d3fa..33e5a315ea3097699421ed4cdfcf912aaed80087 100644 (file)
@@ -41,11 +41,11 @@ search(:node, "*:*") do |client|
     client.ipaddresses do |address|
       exports[mount[:path]] ||= {}
 
-      if mount[:readonly]
-        exports[mount[:path]][address] = "ro"
-      else
-        exports[mount[:path]][address] = "rw"
-      end
+      exports[mount[:path]][address] = if mount[:readonly]
+                                         "ro"
+                                       else
+                                         "rw"
+                                       end
     end
   end
 end