0

I have a ruby script that references a databag's attributes. I would like to know if there is a way to reference databag attributes inside of a databag. Then, when i reference the databag attribute inside of my script, it would point me to another databag's attribute.

Smandoli
  • 6,919
  • 3
  • 49
  • 83
  • Possibly relevant: http://stackoverflow.com/q/5410682/122139. Search Internet on `chef json parser` for more of the same. – Smandoli May 27 '14 at 18:29
  • I apologize if I did a bad job renaming your post. Maybe it needs to specify you are using one databag to reference another. However I think the essential question is about parsing databag content, so maybe the title I gave is okay. – Smandoli May 27 '14 at 18:33

1 Answers1

0

No. Data bags are just JSON. They are not a programming language, so this is not possible.

sethvargo
  • 26,739
  • 10
  • 86
  • 156