[chef] Re: script output to the recipe variable


Chronological Thread 
  • From: Daniel DeLeo < >
  • To: Daniil S < >
  • Cc: " " < >
  • Subject: [chef] Re: script output to the recipe variable
  • Date: Mon, 8 Jul 2013 08:59:01 -0700


On Sunday, July 7, 2013 at 7:29 AM, Daniil S wrote:

Hello.

Is there any possibility to assign script output to a variable, which can be used later in recipe?

Something like that:

my_var = script  "foo"  do
  interpreter "bash"
  user "root"
  code <<-EOH
  echo "foo"
  EOH
end

if myvar == "foo"
...

 
Thank you.
What exactly are you trying to accomplish?

-- 
Daniel DeLeo




Archive powered by MHonArc 2.6.16.

§