summaryrefslogtreecommitdiffstats
path: root/lib/puppet/type/mount.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/type/mount.rb')
-rwxr-xr-xlib/puppet/type/mount.rb13
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/puppet/type/mount.rb b/lib/puppet/type/mount.rb
index 64ba22bb2..342c84377 100755
--- a/lib/puppet/type/mount.rb
+++ b/lib/puppet/type/mount.rb
@@ -16,8 +16,7 @@ module Puppet
newproperty(:ensure) do
desc "Control what to do with this mount. Set this attribute to
``umounted`` to make sure the filesystem is in the filesystem table
- but not mounted (if the filesystem is currently mounted, it will be
- unmounted). Set it to ``absent`` to unmount (if necessary) and remove
+ but not mounted (if the filesystem is currently mounted, it will be unmounted). Set it to ``absent`` to unmount (if necessary) and remove
the filesystem from the fstab. Set to ``mounted`` to add it to the
fstab and mount it. Set to ``present`` to add to fstab but not change
mount/unmount status"
@@ -28,7 +27,7 @@ module Puppet
end
aliasvalue :present, :defined
-
+
newvalue(:unmounted) do
if provider.mounted?
syncothers()
@@ -155,10 +154,10 @@ module Puppet
end
newproperty(:dump) do
- desc "Whether to dump the mount. Not all platform support this.
- Valid values are ``1`` or ``0``. or ``2`` on FreeBSD, Default is ``0``."
-
- if Facter["operatingsystem"].value == "FreeBSD"
+ desc "Whether to dump the mount. Not all platform support this.
+ Valid values are ``1`` or ``0``. or ``2`` on FreeBSD, Default is ``0``."
+
+ if Facter["operatingsystem"].value == "FreeBSD"
newvalue(%r{(0|1|2)})
else
newvalue(%r{(0|1)})