Code Monkey home page Code Monkey logo

Comments (4)

vito avatar vito commented on June 29, 2024

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.

m-richo avatar m-richo commented on June 29, 2024

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.

vito avatar vito commented on June 29, 2024

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.

m-richo avatar m-richo commented on June 29, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.