Juju configuration in bash

Frederico Araujo araujof at gmail.com
Fri Oct 2 23:32:31 UTC 2015


Hi list,

Is there a way to get the configuration options from config.yaml from a
hook written in Bash (e.g., environment variable)? I noticed that in Python
we can import from the charmshelper API like this:

   1. from charmhelpers.core.hookenv import (
   2.     config as config_get,
   3.     ...


And then use config_get['option'] to retrieve the option value.

Thanks,

Fred
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20151002/348b0b7c/attachment.html>


More information about the Juju mailing list