Issue #1670 has been updated by Justin Ellison.

Just bumped into this bug myself.  Wanted to create a define like so:

    define mount::options ($mountpoints = undef, $options = ['defaults', 
'noatime', 'nodiratime']) {
      include mount
      $mounts = $mountpoint ? {
        undef => $name,
        default => $mountpoints,
      }
      # Setting properties to undef leaves them as-is
      mount { $mounts:
        pass => undef,
        ensure => undef,
        fstype => undef,
        target => undef,
        options => $options,
        dump => undef, 
        device => undef,
        notify => Exec["remount all"],
      }
    }
    
I have a custom fact that returns all locally mounted devices, and want to call 
my define above passing it the array of mountpoints.  The net result is that I 
can ensure that all mountpoints are mounted with noatime and nodiratime, 
regardless of their other settings.  However, running the above code results in 
it changing the dump and pass properties to 0 as well as changing the options.

Any way around that?
----------------------------------------
Bug #1670: Mount parameters "dump" and "pass" should default to undefined
https://projects.puppetlabs.com/issues/1670

Author: Oliver Hookins
Status: Accepted
Priority: Normal
Assignee: 
Category: mount
Target version: 
Affected Puppet version: 0.24.5
Keywords: 
Branch: 


Currently there is no way to leave the previous value of the fs dump and pass 
fields in /etc/fstab at their original pre-Puppet values. Both the dump and 
pass parameters default to 0 and obliterate any previous values.

Obviously some value is needed for completely new entries in the file, but for 
pre-existing entries, it would be nice if the previous values were preserved.


-- 
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