Issue #2730 has been updated by Markus Roberts.

Status changed from Ready for Testing to Closed

Pushed in master as commit:1715f3af5db3459c373358fe5ab1ab3b793f7045

----------------------------------------
Feature #2730: New mount type ensure: in fstab only
http://projects.puppetlabs.com/issues/2730

Author: Aurélien Degrémont
Status: Closed
Priority: Normal
Assigned to: Jesse Wolfe
Category: mount
Target version: 2.6
Affected version: 0.24.8
Keywords: 
Branch: http://github.com/jes5199/puppet/tree/feature/master/2730


It seems easy to defined a new ensure type for Mount type.
Presently, mount support 3 modes:
1 - present/unmounted
2 - absent
3 - mounted

In case 1, the mount is defined in fstab, and should be always unmounted.
In case 2, the mount is not in fstab and always unmounted.
In case 3, the mount is defined in fstab, and should be always mounted.

We would like a fourth case:

Case 4: the mount is defined and fstab, but puppet does not handle whether this 
is mounted or not. This is what 'present' means to me :)

By example:
<pre>
--- /usr/lib/ruby/site_ruby/1.8/puppet/type/mount.rb.orig       2009-10-16 
16:02:19.000000000 +0200
+++ /usr/lib/ruby/site_ruby/1.8/puppet/type/mount.rb    2009-10-16 
16:11:38.000000000 +0200
@@ -19,7 +19,12 @@
                 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."
+                fstab and mount it. Set it to ``defined'' to just make sure the
+                filesystem is in the filesystem table."
+
+            newvalue(:defined) do
+                provider.create
+            end
 
             newvalue(:present) do
                 if provider.mounted?
</pre>


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to