[chef] Re: Re: Re: How does a definition know which file or template to use?


Chronological Thread 
  • From: Adam Jacob < >
  • To:
  • Subject: [chef] Re: Re: Re: How does a definition know which file or template to use?
  • Date: Thu, 7 Oct 2010 23:31:32 -0700

On Thu, Oct 7, 2010 at 10:57 PM, Jonathan Ferguson 
< >
 wrote:
>>    define :mydef do
>>      template "/opt/so/and/so" do
>>        # stuff
>>        cookbook "mydef"
>>      end
>>    end
>>
>> Does that help?  You might look at the runit cookbook in the Opscode
>> cookbooks repo
>> for an example of using (rather involved) definitions.
>
>     This was perfect, thank you.  I couldn't find anything in the
> documentation about this, did I miss it? ( interested, not a jib :) )

Yep!

http://wiki.opscode.com/display/chef/Resources#Resources-Template

Adam

-- 
Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E: 




Archive powered by MHonArc 2.6.16.

§