Merge lp:~michael.nelson/charms/trusty/elasticsearch/elasticsearch2-with-xenial-support into lp:~onlineservices-charmers/charms/trusty/elasticsearch/elasticsearch2
Status: | Needs review | ||||
---|---|---|---|---|---|
Proposed branch: | lp:~michael.nelson/charms/trusty/elasticsearch/elasticsearch2-with-xenial-support | ||||
Merge into: | lp:~onlineservices-charmers/charms/trusty/elasticsearch/elasticsearch2 | ||||
Diff against target: |
73 lines (+28/-1) 4 files modified
hooks/hooks.py (+5/-0) hooks/install (+8/-0) tasks/install-elasticsearch.yml (+12/-1) tasks/setup-ufw.yml (+3/-0) |
||||
To merge this branch: | bzr merge lp:~michael.nelson/charms/trusty/elasticsearch/elasticsearch2-with-xenial-support | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Canonical Onlineservices charmers | Pending | ||
Review via email: mp+315196@code.launchpad.net |
Commit message
Update to support Xenial (where python2 is not installed by default)
Description of the change
Two changes to enable xenial deploys (without breaking trusty deploys):
* Ensure python-minimal and python-yaml are installed *before* the install hook is run
* Ensure openjdk-8-jre is used on xenial (trusty has 7)
When testing I also saw that the firewall setup, run during install, was sometimes curling localhost:9200 before it was available - so I added a wait there too.
I've not yet had a chance to test this on anything other than a local provider, but will do so next week.
If this passes tests etc., I'd also like to push this to:
https:/
as well (and not diverge the charm for the trusty/xenial versions - at least not yet as it's not necessary).
Historical note: online-services initially maintained the elasticsearch branch, but when ES 2.0 was released, there were backwards incompatible changes, so we created and additionally maintained the elasticsearch2 branch which is targeted in the MP. Independently, Charles and Marco then landed ES2.0 support to the original elasticsearch branch (breaking 1.0 support), so the two have diverged slightly.
Unmerged revisions
- 46. By Michael Nelson
-
Support xenial as well as trusty installations