This cookbook handles the application specific setup.
default
- sets environment variables in /etc/environment from an attributes hash
Just include environment_variables
in your node's run_list
:
{
"name":"my_node",
"run_list": [
"recipe[environment_variables]"
]
}
Then create entries in an attribute named environment_variables
:
{
"environment_variables": {
"RAILS_ENV": "production",
"S3_API_KEY": "foobar",
"STRIPE_API_KEY": "baz"
}
}
Authors: Chris Gunther