On Thursday, January 30, 2014 10:51:20 AM UTC-6, David Portabella wrote:
>
> again,
> it is a circular dependency.
>
> what you are saying is to first create user and then file.
> but to create the user, we need the file first also.
>
>

An explicit relationship between the two resources takes precedence over 
the autorequire that would otherwise establish a relationship in the 
opposite direction.  There should no longer be a cycle in the relationship 
graph.

It may nevertheless be the case that applying the catalog fails because the 
User provider can't handle the non-existence of the home directory's parent 
directory.  That would be quite reasonable, and not really an issue with 
Puppet itself.  It would arise from the behavior of the system tools (e.g. 
useradd) that Puppet relies upon.  You ought to be able to work around that 
by setting managehome => false as Andrew suggested, coupled with managing 
the declared home directory via Puppet.

Nobody has yet asked, however, *why* you want to configure things this 
way.  The fact that it's tricky to do with Puppet is a reflection of the 
fact that it is weird and non-standard in general (and not straightforward 
to do manually).  If user 'david' is going to own /haha, then why shouldn't 
that be his home directory instead of a subdirectory of it?


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" 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-users/5703dd85-7c90-42f4-8352-461b25688849%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to