Comments (4)
Either way is broken from a BOSH release perspective. There should be explicit properties added for configuring it so it can be set up in the manifest.
from grafana-boshrelease.
Agreed that AWS cloudwatch credentials should be properties of the bosh job and be optionally set via deployment manifest. I'm happy to send a PR, but thought i'd discuss first.
1 options could be to have grafana_ctl
create /home/vcap/.aws/credentials
if AWS credentials were provided in deployment manifest, and that the chpst
command could be replaced with su -c
in order for the grafana-server
process to use the vcap
users environment variables.
Can you think of a neater way of doing it?
from grafana-boshrelease.
Bleh, that's pretty annoying that you can only configure it with either global state on your OS user or global state on the entire machine. :( I really don't like the idea of a BOSH release modifying the user's home directory. Maybe it could create some other dir and export it as $HOME
when running the grafana process?
from grafana-boshrelease.
Let me run some tests with setting $HOME to some arbitrary directory under /var/vcap/ that contains the .aws/credentials file and see if that even works.
I think you can specify additional or overriding environment variables to chpst
with the -e
switch.
Let me get back to you.
from grafana-boshrelease.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grafana-boshrelease.