Issue #2417 has been reported by Klavs Klavsen.

----------------------------------------
Bug #2417: mount type doesn't handle enforcing options correctly when device 
not present
http://projects.reductivelabs.com/issues/2417

Author: Klavs Klavsen
Status: Unreviewed
Priority: Normal
Assigned to: 
Category: 
Target version: 
Complexity: Trivial
Affected version: 0.24.8
Keywords: 


I have the following mount resource declaration:

mount { "/tmp": options => "nodev,noexec,nosuid" }

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

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

Reply via email to