-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debian/Ubuntu tasks setup outdated zookeeper (ubuntu 14.04 repos latest version is 3.4.5) #26
Comments
@lhoss you can use
variable to install required version, older version may be removed from Zookeeper FTP but you can change url as well
|
@ernestas-poskus and in this role for Debian/Ubuntu installs, zookeeper is installed from those packages, see: https://github.com/AnsibleShipyard/ansible-zookeeper/blob/master/tasks/Debian.yml Obviously I cannot set a higher version, if that version will not be found in the (Ubuntu) apt repository, and neither is I see following solutions to add the needed support:
Happy to get feedback on which solution would be preferred by the maintainers ( @JasonGiedymin ?), so a fix from our side could end in a merged PR ! |
Solution 2) sounds best, it would be easier to maintain. 👍 |
OK, today/now I start implementing work on this. Further changes planned:
hope that's in line with the committer(s)! |
If it is necessary
we should be compatible with older releases
I suggest to only extract parts that are repeating
Separate small PR's ftw = incremental releases |
I just pushed the 2. refactoring PR (hopefully we can get them merged quickly): #33 And the final PR for fix this issue, will be ready tomorrow: Change done to make it work in Ubuntu/Debian:
Another thing I discovered (I will create a new issue): Update: (10am CEST): Got it working (by looking at the well done ansible-consul role!):
@ernestas-poskus does it make sense for me to open the 3rd PR that provides a working version of debian-from-tarball-install (still fully downward compatible, I even kept the 'debian apt install' as an alternative, but disabled by default)? |
@ernestas-poskus a preview of (the planned) 3rd PR teralytics/ansible-zookeeper@master...teralytics:zookeeper_debian_tarball_install |
@lhoss teralytics/ansible-zookeeper@master...teralytics:zookeeper_debian_tarball_install Cant comment on it. +---
+- name: Start zookeeper service [says start, but stops and disables]
+ service: name=zookeeper state=stopped enabled=no
+
+- name: Apt install required system packages. [says install, but removes]
+ apt: pkg={{item}} state=absent
+ with_items:
+ - zookeeper
+ - zookeeperd I don't like deb-uninstall.yml and extra variables that come with it, why do you need it ? |
Good question! ps: It's interesting that most roles don't provide any sort of uninstaller (ansible-ceph's uninstaller playbook being a nice counter-example though) |
I would suggest to keep it in your own playbook where you run this zookeeper role
Yes it's odd, personally never encountered uninstaller. |
@ernestas-poskus I removed the uninstall stuff from my branch preview and submitted a PR -^ |
fyi https://answers.launchpad.net/ubuntu/+source/zookeeper/+question/289577 In short: After our latest fresh cluster install, I found out (way too late) that opting for a non-deb pkg install with zookeeper is suboptimal , as the mesos install later will still require the zookeeper deb pkg installed (and will silently install it , and on the first zookeeper restart after that, you will get a invalid Happy to hear about easier solution, than the ones I listed in above link. |
nice there's an alternate ppa .. will try this out (and if good, would create a PR that allows to optionally set a ppa):
|
for anyone finding this, lately we merged support to install zookeeper from above ppa repos -> #58 |
We need to setup at least v3.4.6, better latest 3.4.8 as in Ubuntu 14.04 the motivation seems low to provide a recent apt package, see: https://answers.launchpad.net/ubuntu/+source/zookeeper/+question/289577
Intrestingly, an older version of this script, supported later zookeeper version, by installing from the official binaries (like it's still active for the redhat tasks)
Commit that changed this: a6160aa
Is there a chance to go back to using the official archive? (or to accept such a PR ?)
The text was updated successfully, but these errors were encountered: