Merge lp:~chad.smith/charms/precise/landscape-client/lsclient-origin-param into lp:~charmers/charms/precise/landscape-client/trunk
Proposed by
Chad Smith
Status: | Merged |
---|---|
Approved by: | Mark Mims |
Approved revision: | 27 |
Merged at revision: | 21 |
Proposed branch: | lp:~chad.smith/charms/precise/landscape-client/lsclient-origin-param |
Merge into: | lp:~charmers/charms/precise/landscape-client/trunk |
Diff against target: |
158 lines (+86/-8) 5 files modified
README (+3/-3) config.yaml (+10/-2) hooks/common.py (+6/-1) hooks/install (+66/-1) revision (+1/-1) |
To merge this branch: | bzr merge lp:~chad.smith/charms/precise/landscape-client/lsclient-origin-param |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mark Mims (community) | Approve | ||
David Britton (community) | Approve | ||
Review via email: mp+150623@code.launchpad.net |
Description of the change
The branch updates landscape-client charm to allow passing an "origin" parameter to designate a different repository from which to pull landscape-client & landscape-common debs. If unspecified, the origin parameter defaults to "distro" which will not alter PPAs or apt-sources on the juju unit and just deploy the distribution's stock landscape-client deb.
Here are the changes I put in to add an origin param that takes any of the following formats:
#PPAs
ppa:blah/blah
# APT SOURCE LINES
deb http://
# private repo with or without keys
https:/
To post a comment you must log in.
[1] Let's get rid of the grub-pc workaround. I don't think we want that in the official charm.
[2] Can we change the sources file to something like "landscape- client- origin. list"?
[3] Add in ;; to the default (*) case. Just for sanity sake.
[4] Move the rm into add_apt_source, just to keep it with like code, also change to simply rm -f $SOURCES_FILE, which will always succeed (then you can take it out of the if block)
[5] Change interactions in the case statement with the souces_file to '>' from '>>' to make it clear that the file is being recreated each time
[6] Probably want to specially handle the case of ORIGIN not set. like, a sentinel in add_apt_source or something like that.
[7] Remove stray ntp installation.