Hi Iain, upgrade-charm is the /right/ step for this, however the problem is that upgrade charm does not explicitly run all the previous hooks (events) that fired. The files and updated hooks will only be run on future hook invocations. What I'd recommend is to abstract the bits that do this updating in the hook to a file that can be included/executed from other hooks (like the upgrade-charm hook) so that you can refresh them as the charms are upgraded.
Marco On Fri, Feb 5, 2016 at 6:50 AM Iain Lane <[email protected]> wrote: > [ please keep me in CC as I'm not subscribed ] > > Hey, > > Just got redirected here from #juju. > > I have a charm appstream-dep11 that has a subordinate relationship to > nrpe-external-master so that it can provide some nagios checks. I just > wrote a hook nrpe-external-master-relation-changed that puts some files > in the right directories for nagios/nrpe to pick them up. The problem is > that when I ran "juju upgrade-charm --repository=charms/ > appstream-dep11", the hook wasn't called and so the checks aren't > installed. > > Can anyone let me know what I'm doing wrong here? I ideally want to just > be able to run upgrade-charm (or some other command) after dropping new > checks in so that they are easily picked up and exported. > > Cheers, > > -- > Iain Lane [ [email protected] ] > Debian Developer [ [email protected] ] > Ubuntu Developer [ [email protected] ] > -- > Juju mailing list > [email protected] > Modify settings or unsubscribe at: > https://lists.ubuntu.com/mailman/listinfo/juju >
-- Juju mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
