[chef] Loading a text of json file into a hash every run


Chronological Thread 
  • From: David Montgomery < >
  • To:
  • Subject: [chef] Loading a text of json file into a hash every run
  • Date: Fri, 8 Feb 2013 21:42:03 +0800

Hi,

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.
{
   "a": "b",
   "c": "d"
}

from a recipe into a hash from a text file?  Ruby block?  I perform python but what ever works.


Thanks


  • [chef] Loading a text of json file into a hash every run, David Montgomery, 02/08/2013

Archive powered by MHonArc 2.6.16.

§