mount type is constantly remounting

59 views
Skip to first unread message

slune

unread,
Sep 15, 2011, 2:59:27 AM9/15/11
to Puppet Users
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)

Daniel Piddock

unread,
Sep 15, 2011, 4:22:44 AM9/15/11
to puppet...@googlegroups.com
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

Reply all
Reply to author
Forward
0 new messages