- From: David Petzel <
>
- To:
- Subject: [chef] Re: Re: Re: Creating authorized_keys for LDAP users.
- Date: Mon, 26 Jan 2015 18:47:35 -0500
I don't believe so, if you are on the node itself, you'd have access to attributes even before the node has been saved. The situation you describe would apply to other nodes looking at this nodes data.
This really sounds like an Ohai race condition. In your case the second run now has LDAP enabled properly so Ohai is able to detect the users. Does your LDAP recipe restart any services? Are those services restarted delayed or immediate? If you have any delayed restarts in that recipe immediate might help here. Without knowing what the recipe its a little hard, but maybe add a notification on your last resource in your ldap recipe to call the ohai reload similar to the second example in
https://docs.chef.io/resource_ohai.html#examples.
Archive powered by MHonArc 2.6.16.