Oh, no, we would be requiring /export/home, not /export.

user { 'foo':
  home => '/export/home/foo
}

/export/home/foo => Autofs controlled
/export/home => Something Puppet creates

If it doesn't create it, then nothing happens, no added complexity.

I'm not sure what kind of surprise you could have with autorequiring
/export/home. I'm also not sure what complexity arises.

file { '/export': ensure => 'directory' }
file { '/export/home': ensure => 'directory' }
user { 'foo': home => '/export/home/foo' } # This probably needs to come
after /export/home, otherwise the user will get a nasty surprise when they
first login

Sure, I *can* create the user without having the directory in place. But
what good does that do anyone?

Trevor



On Fri, Mar 6, 2015 at 7:47 AM, Felix Frank <[email protected]
> wrote:

> On 03/06/2015 12:20 PM, Trevor Vaughan wrote:
> >
> > If, for some reason, /export/home was *not* controlled by Puppet, then I
> > would want User['foo'[ to autorequire /export as well as /export/home.
>
> Hi Trevor,
>
> I see your example, but don't really see the value in requiring /export.
>
> If /export/home appears through a mount, then the user should make the
> User require the mount resource explicitly, not its mount point. If
> there is no mount resource (autofs), then requiring the mount point adds
> comparatively little safety, at the cost of complexity and potential
> surprises.
>
> Cheers,
> Felix
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-dev/54F9A1D6.8060107%40alumni.tu-berlin.de
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Trevor Vaughan
Vice President, Onyx Point, Inc
(410) 541-6699
[email protected]

-- This account not approved for unencrypted proprietary information --

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/CANs%2BFoWKrZQad85WfR%3D_PhRGJ5CDL-LuWniVZesT60sWGrZG9A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to