On Thu, Apr 23, 2015 at 06:53:27AM -0700, jcbollinger wrote:
>
>
> On Thursday, April 23, 2015 at 5:44:37 AM UTC-5, Arnau wrote:
> >
> > Hello all,
> >
> > we had some NFS mounts in /nfs/mount1. Then we created a link
> > from /nfs/mount1 to /mount1. Both resources were defined using puppet
> > (mount and file). As the mounts were defined in fstab, the file
> > resource was applied every time with no problem (it ensured that the
> > link was created).
> >
> > Now we have moved from fstab mounts to automount, and now the file
> > resource that creates the link triggers an automatic mount everytime
> > puppet runs (not desired).
> >
> > A part from creating those links in an exec, anyone has a better idea on
> > how to manage this somehow more elegant?
> >
> >
>
> Puppet needs to gather information about the managed file (symlink) on
> every run. I don't see why this would need to involve the link *target*
> being stat()ed, but if it does, and if the target path is on an autofs file
> system, then that will trigger a mount.
Maybe replace => no might help as well.
--
(o- Julien Pivotto
//\ Open-Source Consultant
V_/_ Inuits -
https://www.inuits.eu