Re: [Puppet-dev] Re: Autorequiring parent directories to the home directory in user resources

2015-03-06 Thread Trevor Vaughan
That's a really good point and an unfortunate situation, kind of like the group/user dependency chain for removals. So, there goes that thread :-) On Fri, Mar 6, 2015 at 9:23 AM, Erik Dalén wrote: > > > On Fri, 6 Mar 2015 at 15:04 Felix Frank > wrote: > >> On 03/06/2015 02:45 PM, Trevor Vaugha

Re: [Puppet-dev] Re: Autorequiring parent directories to the home directory in user resources

2015-03-06 Thread Erik Dalén
On Fri, 6 Mar 2015 at 15:04 Felix Frank wrote: > On 03/06/2015 02:45 PM, Trevor Vaughan wrote: > > file { '/export': ensure => 'directory' } > > file { '/export/home': ensure => 'directory' } > > user { 'foo': home => '/export/home/foo' } # This probably needs to come > > after /export/home, othe

Re: [Puppet-dev] Re: Autorequiring parent directories to the home directory in user resources

2015-03-06 Thread Trevor Vaughan
Sorry for the confusion. That's what I get for typing prior to the morning caffeine. Trevor On Fri, Mar 6, 2015 at 9:03 AM, Felix Frank wrote: > On 03/06/2015 02:45 PM, Trevor Vaughan wrote: > > file { '/export': ensure => 'directory' } > > file { '/export/home': ensure => 'directory' } > > use

Re: [Puppet-dev] Re: Autorequiring parent directories to the home directory in user resources

2015-03-06 Thread Felix Frank
On 03/06/2015 02:45 PM, Trevor Vaughan wrote: > 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

Re: [Puppet-dev] Re: Autorequiring parent directories to the home directory in user resources

2015-03-06 Thread Trevor Vaughan
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 ha

Re: [Puppet-dev] Re: Autorequiring parent directories to the home directory in user resources

2015-03-06 Thread Felix Frank
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

Re: [Puppet-dev] Re: Autorequiring parent directories to the home directory in user resources

2015-03-06 Thread Trevor Vaughan
Interestingly, I ran into just this issue yesterday. The scenario was using autofs. Autofs home directories get installed in /export/home/$USER. Autofs takes care of $USER. However, puppet takes care of /export and /home. So, if all resources are managed by Puppet, then User['foo'] should autor

Re: [Puppet-dev] Re: Autorequiring parent directories to the home directory in user resources

2015-03-06 Thread Felix Frank
Since we're winding down :) As nobody seems to love generated resources as passionately as I do (it's OK, we still have each other), I would still ask for a compromise: Autorequire does make sense, but can we tone it down? As I understand it, the following resource user { 'foo': home => '/var/li

Re: [Puppet-dev] Re: Autorequiring parent directories to the home directory in user resources

2015-03-03 Thread Trevor Vaughan
Indeed, I too apologize for the complete tangent! And, as would be expected, I'm for the autorequires since it does what I would expect it to do. Which, again, is counter to what John wants ;-). But, that's my answer to the original question. Thanks, Trevor On Tue, Mar 3, 2015 at 3:37 PM, John

[Puppet-dev] Re: Autorequiring parent directories to the home directory in user resources

2015-03-03 Thread John Bollinger
On Wednesday, February 25, 2015 at 5:41:19 PM UTC-6, Raphaël Pinson wrote: > > Hello, > > > As per Kylo's comment in PR for PUP-4036 > , > I'd like to discuss the possibility and implications of autorequiring > parent direct