[chef] Re: How to access attributes later in a recipe from where they're set


Chronological Thread 
  • From: Bryan McLellan < >
  • To:
  • Subject: [chef] Re: How to access attributes later in a recipe from where they're set
  • Date: Thu, 19 May 2011 08:05:47 -0700

On Thu, May 19, 2011 at 5:48 AM, Edward Sargisson 
< >
 wrote:
> Early in my recipe I have this:
> aws_ebs_volume "app_db_volume" do
>  <useful content>
> end

What is this useful content? Is this Ruby?

There are a couple ways to run ruby code that get executed at
different time, either just including it or putting it in a
ruby_block. [1]

It would be easier to assist you with the full cookbook available to
read, such as a gist.

Bryan

[1] http://blog.loftninjas.org/2011/02/16/the-power-of-chef-and-ruby/



Archive powered by MHonArc 2.6.16.

§