This is likely a factor of how unix works rather than puppet.  When puppet 
starts up, it reads nsswitch.conf. If you modify nsswitch.conf during the 
puppet run, it will not see the changes until after the process has restarted 
and sees the new nsswitch.conf file.

I have gotten around this by putting the LDAP config in a stage prior to main 
and restarting puppet within that stage, so that puppet restarts itself before 
processing the main stage. It's a bit clunky and painful to manage the 
dependancy trees, but it works.

On Jul 15, 2012, at 2:01 PM, Thomas Bétrancourt wrote:
> On my servers, i'm using pam-ldap and cie.
> 
> All the configuration of the system is done by puppet.
> 
> After to the system installation, when i run puppet, in a first time, puppet 
> sets up the ldap configuration and after, the services installation and 
> configuration.
> 
> While setting up of one of these services, puppet doesn't find a user which 
> is provided by LDAP. When i launch again puppet, the user is found.
> 
> I think that puppet stores in it's cache the list of the users of the system, 
> but when ldap is up, puppet doesn't reload it's cache to find new users.
> 
> It's there a way to do this ?
> 
> Thank you for your support
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/puppet-users/-/L2o0C_vGeJwJ.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/puppet-users?hl=en.

-- 
Jo Rhett
Net Consonance : net philanthropy to improve open source and internet projects.



-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to