- From: Daniil S <
>
- To: "
" <
>
- Subject: [chef] script output to the recipe variable
- Date: Sun, 7 Jul 2013 07:29:01 -0700 (PDT)
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=gpoGh0dMy2Vt/jizUcBq+hyYCE20ubThwd3JPpdn7TQKd9mspWtri9nxV8Pn48rtBAu0OiRfZOOE07bhNcXdb6BMQhzAdvvC6AFCtKGmILZeeGgOrN9zTb3Komt3YcXDbvv8DwtvIDu0Q0irz26hq4/02lr/IZNpebBi4UB3K9w= ;
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.
- [chef] script output to the recipe variable, Daniil S, 07/07/2013
Archive powered by MHonArc 2.6.16.