AnsibleShipyard / ansible-zookeeper

Ansible playbook for ZooKeeper
MIT License
95 stars 114 forks source link

Support custom zookeeper debian apt repository (to use v3.4.8 on Ubuntu 14.04 #58

Closed lhoss closed 7 years ago

lhoss commented 7 years ago

by allowing to configure a custom (ppa) apt repos, we can use a community provided v3.4.8 deb-pkg based deployment (which is more secure than using 'tarball' , when later installing mesos which by default has 'zookeeper' in its dependencies).

Example config to make this work:

      zookeeper_debian_apt_repository: "ppa:ufscar/zookeeper"
      zookeeper_debian_apt_install: true
      zookeeper_version: 3.4.8
ernestas-poskus commented 7 years ago

@lhoss please update README as well and you can include your example

lhoss commented 7 years ago

@ernestas-poskus done including a more flexible way to define different repositories for different distribution versions (resp. this properly limits to add the repository only for the supported distro, as for ex. to deploy v3.4.8 on Ubuntu 16.04 does not require any additional repo)

lhoss commented 7 years ago

ps: I also bumped (long time outdated) zookeeper_playbook_version , but I guess both following vars you can simply remove from the defaults ( and the README)

ansible_playbook_version: 0.1
zookeeper_playbook_version: "0.17.0"
ernestas-poskus commented 7 years ago

Will remove this zookeeper_playbook_version var

ernestas-poskus commented 7 years ago

Thank you for contribution :+1: