[chef] env variables for linux - best practice


Chronological Thread 
  • From: David Montgomery < >
  • To:
  • Subject: [chef] env variables for linux - best practice
  • Date: Thu, 29 Aug 2013 10:08:53 +0800


Per the below take from http://docs.opscode.com/chef/resources.html#env


On UNIX-based systems, the best way to manipulate environment keys is with the ENV variable in Ruby; however, this approach does not have the same permanent effect as using the env resource.

What is the best way to use chef resource to add environment variables in Ubuntu?

E.g. if I want to set export AWS_ACCESS_KEY_ID=foobar..what is the most chefonic method do do this?

This there a clear example on how to this?

Thanks



Archive powered by MHonArc 2.6.16.

§