Reputation: 25
I am trying to the following in chef in attributes/default.rb
:
default[cookbook_name.to_s]["foo"] = bar
However, I can not seem to get the cookbook name in default attributes file. Is it even possible to get the cookbook name in the attributes file?
Upvotes: 1
Views: 515
Reputation: 54181
No, this is not supported. You'll have to use a normal string.
Upvotes: 3