]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - facts/mounts.rb
um, right nameserver helps
[dsa-puppet.git] / facts / mounts.rb
index b6494bf20272023cbac06c796cf77a0b1e5061ed..2a075ccba0d2a132e81459530ce9601f77f171aa 100644 (file)
@@ -1,21 +1,21 @@
 begin
   require 'filesystem'
-rescue Exception => e
-  exit 0
-end
 
-Facter.add("mounts") do
-       ignorefs = ["NFS", "nfs", "nfs4", "afs", "binfmt_misc", "proc", "smbfs", 
-                   "autofs", "iso9660", "ncpfs", "coda", "devpts", "ftpfs", "devfs", 
-                   "mfs", "shfs", "sysfs", "cifs", "lustre_lite", "tmpfs", "usbfs", "udf"]
-       mountpoints = []
-       FileSystem.mounts.each do |m|
-               if not ignorefs.include?(m.fstype) && m.options !~ /bind/
-                       mountpoints << m.mount
+       Facter.add("mounts") do
+               ignorefs = ["NFS", "nfs", "nfs4", "nfsd", "afs", "binfmt_misc", "proc", "smbfs", 
+                           "autofs", "iso9660", "ncpfs", "coda", "devpts", "ftpfs", "devfs", 
+                           "mfs", "shfs", "sysfs", "cifs", "lustre_lite", "tmpfs", "usbfs", "udf",
+                           "fusectl", "fuse.snapshotfs", "rpc_pipefs"]
+               mountpoints = []
+               FileSystem.mounts.each do |m|
+                       if ((not ignorefs.include?(m.fstype)) && (m.options !~ /bind/))
+                               mountpoints << m.mount
+                       end
+               end
+               setcode do
+                       mountpoints.join(',')
                end
        end
-       setcode do
-               mountpoints.join(',')
-       end
-end
 
+rescue Exception => e
+end