ecp89
ecp89

Reputation: 25

Chef reference to cookbook_name in attributes/default.rb

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

Answers (1)

coderanger
coderanger

Reputation: 54181

No, this is not supported. You'll have to use a normal string.

Upvotes: 3

Related Questions