I saw some answers to similar questions, such as how to set an attribute to an environment variable, or how to set an environment variable in the whole system. But that's not what I'm looking for here.
I understand that the variables will only be available within the context of the cookbook and that is fine.
All I want is to define an attribute, such as:
default['mycookbook']['myvar'] = '3'
and then an environment variable in my recipe, like:
ENV['MY_VAR'] = default['mycookbook']['myvar']
and have $MY_VAR
available to be used within the recipe.
Any thoughts?