- From: Adam Jacob <
>
- To:
- Subject: [chef] Re: Setting variables of a cookbook using a ruby-script
- Date: Sun, 21 Feb 2010 18:44:51 -0800
On Sun, Feb 21, 2010 at 5:04 PM,
<
>
wrote:
>
Hi! I was wondering if it is possible to set the variables of a cookbook by
>
using a ruby script? I tought about fetching a cookbook, setting its
>
variables
>
then storing it in the run_list of a node.
>
Is that possible?
Matthias, what exactly is your use case here?
You can set variables in a cookbook using 'attributes' files, and you
can point the chef client at a JSON file at run time. In either case,
if you are using the chef-client command, you'll get the data stored
on the Chef server.
Adam
--
Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E:
Archive powered by MHonArc 2.6.16.