Hi, I have defined mount resource like this: mount { "/mnt/test/": device => "//test/test", fstype => cifs, ensure => mounted, options => "defaults,acl,soft,uid=test,gid=test=xxxxx",...." remounts => true, } For the first time (mount point is not mounted) it mounts perfectly, but after that it keeps mounting to that mount point with every puppet client run and piling up mounts. After while I have many the same mounts on this mount point. For now I''ve changed ensure => present, but this is not ideal. Is there any way how prevent this behaviour. Thank you, Filip puppet client 2.6.9 puppet server 2.6.9 CentOS release 5.7 (Final) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Daniel Piddock
2011-Sep-15 08:22 UTC
Re: [Puppet Users] mount type is constantly remounting
On 15/09/11 07:59, slune wrote:> Hi, > > I have defined mount resource like this: > > mount { "/mnt/test/": > device => "//test/test", > fstype => cifs, > ensure => mounted, > options => "defaults,acl,soft,uid=test,gid=test=xxxxx",...." > remounts => true, > } > > For the first time (mount point is not mounted) it mounts perfectly, > but after that it keeps mounting to that mount point with every puppet > client run and piling up mounts. After while I have many the same > mounts on this mount point. For now I''ve changed ensure => present, > but this is not ideal. Is there any way how prevent this behaviour.Remove the / at the end of the "/mnt/test/". Basically a mismatch on what the list of mounted devices returns and what puppet is looking for. See Stefan Schulte''s reply in this thread for more verbose details: http://groups.google.com/group/puppet-users/browse_thread/thread/c6cb361ba7da32f2/5e305ca7ddbbabb8 Dan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.