[chef] Re: How to find the definition "openstack_identity_register" in the cookbook.


Chronological Thread 
  • From: Daniel DeLeo < >
  • To:
  • Subject: [chef] Re: How to find the definition "openstack_identity_register" in the cookbook.
  • Date: Mon, 16 Sep 2013 08:56:19 -0700


On Monday, September 16, 2013 at 8:43 AM, Sam Su wrote:

Hi guys,

I am just learning how to use chef and trying to understand the keystone recipes at
https://github.com/stackforge/cookbook-openstack-identity/blob/master/recipes

For the recipe registration.rb, I can understand most of the content except the structure "openstack_identity_register". I think the word "openstack_identity_register" should have a definition at somewhere, so I tried to search the definition at the whole cookbook "cookbook-openstack-identity" but failed.

I am wondering where is the definition so that I can understand what happened in the structure "openstack_identity_register".

Much appreciated for any comment.

Thanks,
Sam
This is a LWRP (lightweight resource and provider) that comes bundled with the cookbook. The resource file declares the available fields:
https://github.com/stackforge/cookbook-openstack-identity/blob/master/resources/register.rb

And the provider is the implementation:
https://github.com/stackforge/cookbook-openstack-identity/blob/master/providers/register.rb

The docs for LWRPs are here: http://docs.opscode.com/lwrp_custom.html

HTH,

-- 
Daniel DeLeo




Archive powered by MHonArc 2.6.16.

§