Issue #2417 has been updated by Luke Kanies. Category set to mount Status changed from Unreviewed to Accepted
You're right; if the mount is present, it should manage it, but if it's not present it shouldn't create it. ---------------------------------------- Bug #2417: mount type doesn't handle enforcing options correctly when device not present http://projects.reductivelabs.com/issues/2417 Author: Klavs Klavsen Status: Accepted Priority: Normal Assigned to: Category: mount Target version: Complexity: Trivial Affected version: 0.24.8 Keywords: I have the following mount resource declaration: <pre> mount { "/tmp": options => "nodev,noexec,nosuid" } </pre> ie. I want to enforce those mount options - if the mountpoint exists. I have no ensure => present - and it does not try to add the device - but it does "rewrite" fstab - even though nothing is changed in it: <pre> notice: //Node[nagiosserver]/basenode/baseapps/Mount[/tmp]/options: defined 'options' as 'noexec,nodev,nosuid' notice: //Node[nagiosserver]/basenode/baseapps/Mount[/tmp]/pass: defined 'pass' as '0' notice: //Node[nagiosserver]/basenode/baseapps/Mount[/tmp]/dump: defined 'dump' as '0' info: Filebucket[/var/lib/puppet/clientbucket]: Adding /etc/fstab(a1ea8596e3480e94cf5def461cb8f1d9) notice: //Node[nagiosserver]/basenode/baseapps/Mount[/tmp]: Refreshing self </pre> IMHO when ensure => present is not set - it should check for the existence of /tmp - befor trying to alter it. Am I crazy? -- 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://reductivelabs.com/redmine/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 -~----------~----~----~----~------~----~------~--~---
