Package updates and charm responsibilities
john at arbash-meinel.com
Thu Apr 10 10:42:47 UTC 2014
All hooks are run sequentially (we explicitly take out a lock across all
hooks that want to run on a machine), just so that charms can do whatever
they want with apt without stepping on each other's toes.
I would think "install" is the most likely hook to actually do update and
install. I'm not sure about a charm ever doing "upgrade" since that would
upgrade other packages, right?
There isn't a process in juju today that does regular "keep my machines up
to date" but you do have "juju run sudo apt-get update" if you want to do
On Thu, Apr 10, 2014 at 2:00 PM, Stuart Bishop
<stuart.bishop at canonical.com>wrote:
> Should a charm be responsible for running 'apt-get update', 'apt-get
> upgrade' etc?
> If so, which hooks should invoke this behavior?
> Of course, sometimes a charm has no choice about 'apt-get update', for
> example when a config-changed hook needs to add a PPA.
> Stuart Bishop <stuart.bishop at canonical.com>
> Juju mailing list
> Juju at lists.ubuntu.com
> Modify settings or unsubscribe at:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Juju