Is there a convention or place in the deploy manifest to specify environment variables for machines? Or would I have to write a shell script to do this? If I have to do that, do I have to set them in a pre-job hook?
How to set environment variables with bosh?
891 Views Asked by Breedly At
1
There are 1 best solutions below
Related Questions in BOSH-DEPLOYER
- Getting deployment error while installing PCF Dev
- Elastic run times - Cloud foundry
- Autoscaling program Bosh/Concourse
- How to access the IP of my other instance inside my app when configure for multiple instances
- Is there a way to use Bosh to handle an app deployed on a local cluster without an IaaS?
- Installing Bosh Lite on Windows 10
- Unable to create bosh release
- Error during bosh deploy: "Arguments are not correct, details: 'expected string value for member 1 of key values of member 1 of option filters"
- Error 100: Unable to render instance groups for deployment
- bosh upload release invalid domain name
- Using Cloud Foundry BOSH Command in script
- bosh_cli gem conflicts with other version
- Bosh stemcell Ubuntu Ruby, in conflict with /var/vcap/bosh/lib/ruby (LoadError)
- `bosh` gives me a `x509: cannot validate certificate` — how do I fix?
- how to let bosh errand execute on existed vms
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
When creating a release, the convention is to set and export only those environment variables that your particular job/process needs and to do so in the job's control script.
For example, the bosh release exports several environment variables like
GEM_HOMEandhttp_proxyin the control/shell script which starts the director process (ref). TheGEM_HOMEstatically points to its own package directory, and thehttp_proxyis conditionally set based on operator-configured properties from the deployment manifest.The
pre-starthook is executed in its own process, so any environment variables that yourpre-startscript tries to export will not be propagated to other shell scripts that are later executed by bosh or monit.