Juju configuration in bash
Frederico Araujo
araujof at gmail.com
Sat Oct 3 13:52:12 UTC 2015
Thank you guys!
Best,
Fred
On Fri, Oct 2, 2015 at 7:14 PM, Nick Veitch <nick.veitch at canonical.com>
wrote:
> Hi,
>
> There is a config-get hook tool which does the same job (
> https://jujucharms.com/docs/stable/authors-hook-environment#config-get)
> Actually, that whole page is a good read because there is a lot of info
> about the hook environment and other hooks tools there.
>
> hth
>
> On 3 October 2015 at 00:32, Frederico Araujo <araujof at gmail.com> wrote:
>
>> 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
>>
>>
>>
>> --
>> Juju mailing list
>> Juju at lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/juju
>>
>>
>
>
> --
> Nick Veitch
> nick.veitch at canonical.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20151003/391ba491/attachment.html>
More information about the Juju
mailing list