Merge lp://staging/~ack/charms/trusty/odl-controller/odl-package-from-repo into lp://staging/~sdn-charmers/charms/trusty/odl-controller/trunk
Proposed by
Alberto Donato
Status: | Merged |
---|---|
Merged at revision: | 10 |
Proposed branch: | lp://staging/~ack/charms/trusty/odl-controller/odl-package-from-repo |
Merge into: | lp://staging/~sdn-charmers/charms/trusty/odl-controller/trunk |
Diff against target: |
90 lines (+36/-12) 2 files modified
config.yaml (+13/-1) hooks/odl_controller_hooks.py (+23/-11) |
To merge this branch: | bzr merge lp://staging/~ack/charms/trusty/odl-controller/odl-package-from-repo |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Robert Ayres (community) | Approve | ||
Chris Glass | Pending | ||
Review via email:
|
Description of the change
This adds an "install-origin" option to the charm to allow installing the distribution-karaf tarball via package, through the specified repo.
If the option is not specified (as by default), the "install-url" is used instead.
I built a sample package here: https:/
so a deploy can be tested with the following config:
install-origin: ppa:ack/odl-test
To post a comment you must log in.
Minor points:
*I think 'install-sources' is better than 'install-origin' and is consistent with other charms.
*Using 'configure_ sources( True, "install-sources")' is better than just 'add_source( install_ origin) ' so that you can use a list of PPAs or other methods for installation.
*Remove 'install-origin' empty default.
*I think the logic of the install hook could be cleaner. It may be easier to express as:
if config. get("install- origin" ):
# configure sources
# install dependencies PACKAGES)
apt_install(
url = config. get("install- url")
if url:
# install opendaylight from url
else:
# install opendaylight using apt
Then 'install-origin' is more like a apt repo override and 'install-url' a package override where both options can be used with or without each other.