-
Committer:
Ubuntu CI Bot
-
Author(s):
Andy Doan
-
Date:
2014-07-09 17:32:28 UTC
-
mfrom:
(631.4.5 lander-code-layout)
-
Revision ID:
ubuntu_ci_bot-20140709173228-4lc1buh1qapeh44s
[r=PS Jenkins bot, Francis Ginther, Celso Providelo] lander charm: reorganize code layout and improve install logic
This does a couple of things that were hard to do piece by piece. The
change is a bit big but:
The main goal was getting our code to be in its own directory so it
can start to be treated like read-only. We have an idea in the future
of code rollbacks, so this fits in with that model. This now deploys
code to:
/srv/<service>/code/r<revno>_<sha1>
and we maintain a symlink to the latest code with:
/srv/<service>/code/current
While doing this I got rid of all the bzr-branch logic we no longer
use. This reduces complexity.
I'll also converted our tarball logic to use charmhelpers.fetch.
While changing so much, I also decided to improve our code-extraction
logic by moving it to our config-changed logic. This means that
we now have the ability to update code by just changing the payload
value of the service.