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.


On Thursday, January 30, 2014 5:31:10 PM UTC+1, Arpin Dominique (Nter) 
wrote:
>
>  Hi,
>
>  
>
> Simple :
>
>  
>
> User[‘david’]->File[‘/haha’]
>
>  
>
> Ref: http://docs.puppetlabs.com/learning/ordering.html
>
>  
>
>  
>
>  
>  
> *Dominique Arpin* 
>  
> Tél. Interne: 140-4156
>  
> Tél. 514 285.2929 Poste: 140-4156
>
>
>  *De :* [email protected] <javascript:> [mailto:
> [email protected] <javascript:>] *De la part de* David Portabella
> *Envoyé :* 30 janvier, 2014 11:28
> *À :* [email protected] <javascript:>
> *Objet :* [Puppet Users] circular dependency between user/home and parent 
> directory owned by that user
>
>  
>  
> For illustrating purposes,
>  
> I need a *david* user with home directory /haha/david,
>  
> and at the same time, the directory /haha also needs to be owned by 
> *david*.
>  
>  
>  
> this code does not work,
>   
> because user requires the /haha directory, and the /haha directory 
> requires the david user,
>   
> so we have a circular dependency,
>  
> and it seems that puppet does not know how to handle this.
>  
>  
>  
> user {'david':
>  
>   ensure      => present,
>  
>   home        => '/haha/david',
>  
>   managehome  => true
>  
> }
>  
>  
>  
> file {'/haha':
>  
>   ensure => directory,
>  
>   owner  => 'david'
>  
> }
>  
>  
>  
>  
>  
> how to solve this?
>  
>  
>  
>  
>  
>  
>  
> -- 
> 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] <javascript:>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/puppet-users/da03b929-db57-4964-acf9-060beec69d2c%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>  
> Mise en garde concernant la confidentialité : Le présent message, 
> comprenant tout fichier qui y est joint, est envoyé à l'intention exclusive 
> de son destinataire; il est de nature confidentielle et peut constituer une 
> information protégée par le secret professionnel. Si vous n'êtes pas le 
> destinataire, nous vous avisons que toute impression, copie, distribution 
> ou autre utilisation de ce message est strictement interdite. Si vous avez 
> reçu ce courriel par erreur, veuillez en aviser immédiatement l'expéditeur 
> par retour de courriel et supprimer le courriel. Merci! 
>
> Confidentiality Warning: This message, including any attachment, is sent 
> only for the use of the intended recipient; it is confidential and may 
> constitute privileged information. If you are not the intended recipient, 
> you are hereby notified that any printing, copying, distribution or other 
> use of this message is strictly prohibited. If you have received this email 
> in error, please notify the sender immediately by return email, and delete 
> it. Thank you! 
>  

-- 
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/021d8313-7665-44d3-82fd-fe9be08490c9%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to