you can do this with ruby pretty easily; looks like your file is json so
just do this somewhere in your recipe:
contents = File.read(filename)
hash = JSON.parse(contents)
however, you should probably be storing that data in chef attributes from
the beginning. it’s just as easy to edit those as it is to edit a file, and
a lot more flexible.
On Fri, Feb 8, 2013 at 5:42 AM, David Montgomery
I have a file that on every run needs to load a cookbook into a hash so I
can use in a subsequent template.
So, how do Load e.g.
from a recipe into a hash from a text file? Ruby block? I perform python but what ever works.