Ask Your Question
0

mount bind option status check

asked 2015-09-30 13:14:33 -0600

billjamzz2 gravatar image

updated 2015-09-30 14:20:44 -0600

GregLarkin gravatar image

mounting a "bind" mount works fine in puppet, but puppet doesn't think that it is mounted on further puppet runs and mounts it again.

Thus we ned up with something like this:

[root@epay1 prod ~]# mount|grep ofapp
/corp_invoice/JPM_DirectDebit on /mnt/sftp/ofapp/DD/out type none (rw,bind)
/corp_invoice/JPM_DirectDebit on /mnt/sftp/ofapp/DD/out type none (rw,bind)
/corp_invoice/JPM_DirectDebit on /mnt/sftp/ofapp/DD/out type none (rw,bind)
/corp_invoice/JPM_DirectDebit on /mnt/sftp/ofapp/DD/out type none (rw,bind)
/corp_invoice/JPM_DirectDebit on /mnt/sftp/ofapp/DD/out type none (rw,bind)
/corp_invoice/JPM_DirectDebit on /mnt/sftp/ofapp/DD/out type none (rw,bind)
/corp_invoice/JPM_DirectDebit on /mnt/sftp/ofapp/DD/out type none (rw,bind)
/corp_invoice/JPM_DirectDebit on /mnt/sftp/ofapp/DD/out type none (rw,bind)
/corp_invoice/JPM_DirectDebit on /mnt/sftp/ofapp/DD/out type none (rw,bind)

and on puppet run it says:

Info: /Stage[main]/Epay_class::Realtime/Mount[/home/ofapp/DD/in]: Scheduling refresh of Mount[/home/ofapp/DD/in]
Notice: /Stage[main]/Epay_class::Realtime/Mount[/home/ofapp/DD/out]/ensure: current_value unmounted, should be mounted (noop)

How do I get puppet to correctly access that the mount is indeed mounted so it doesn't try to remount it?

Here's how I'm mounting it:

            mount { '/home/ofapp/DD/out':
                    ensure  => mounted,
                    fstype  => 'none',
                    device  => '/corp_invoice/JPM_DirectDebit',
                    atboot  => true,
                    options => 'bind',
                    require => [File['/mnt/sftp/ofapp/DD/out'],Mount['/corp_invoice']],
            }

client is CentOs 6, puppet-3.2.4-1.el6.noarch.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-09-30 14:38:22 -0600

GregLarkin gravatar image

Is it possible for you to upgrade to a latest version of Puppet? This seems to work correctly in PE 3.8.1 or open-source Puppet 3.8.1. It's possible an earlier version has the fix, too.

edit flag offensive delete link more

Comments

hmm, yes I tested on my dev server and it seems to work correctly. Not the answer I was hoping for but understandable. puppet-3.8.3-1.el6.noarch

billjamzz2 gravatar imagebilljamzz2 ( 2015-09-30 15:35:29 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-09-30 13:14:33 -0600

Seen: 262 times

Last updated: Sep 30 '15