Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I need to set some secondary config options to a service charm deployed with juju. All of the options needed are preset to empty in the original config.yaml file. Now, some of those settings are changed in a separate config file named extra-config.yaml. How does one set these file config options to the service charm with the config-changed hook triggering? Also, can the extra-config.yaml be placed outside the charms directory structure?

This command works, but the config-changed hook is not triggered -->

juju set --config precise/cool-charm/extra-config.yaml cool-charm

Note: The docs provide a --file option which is not recognized.

share|improve this question
add comment

2 Answers

this looks like a bug from what I can tell. Just filed it as https://bugs.launchpad.net/juju/+bug/1015645

share|improve this answer
add comment

Well, it is working as of now (6-21-12) with the current beta version of juju. One needs to issue a
juju set charm-name --config /path/to/extra-config.yaml
It is important to change the config file or add a revision field for the config-changed hook to trigger. The hook will not trigger if the extra config file was previously set and is unchanged.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.