Luke Kanies wrote: > I like the idea, but I'm not too stoked with the implementation. > Having a separate attribute that's only sometimes used seems clumsy. > That being said, I don't have a better idea, either. > > Anyone have any other ideas on how to specify this?
Why not extending the ensure parameter? It currently has present/unmounted (fstab, no mount), absent (no fstab, no mount), and mounted (fstab, mount). ensure=>remount_only could then mean fstab+remount-if-mounted. Another way would be to have separate fstab and mount resources. The current combined functionality can then be done in a "permanent_mount" define, which creates a fstab entry and ensures that the mount is mounted. A downside of this approach would be the necessity to have the same (device/target/options) properties on both types. Regards, DavidS --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to puppet-dev@googlegroups.com To unsubscribe from this group, send email to puppet-dev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en -~----------~----~----~----~------~----~------~--~---