forked from kpx-dev/ansible-zookeeper
-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Zookeeper setup using offical tarball (also) on debian/ubuntu (#34)
* added support to setup zookeeper on debian/ubuntu from the official tarball (same as existing redhat/centos setup) * undo addition of deb-uninstall * added debian/ubuntu specific role variable that selects either upstart or systemd for the init script * update min_ansible_version to 1.6
- Loading branch information
1 parent
3c48ee7
commit 5106db3
Showing
5 changed files
with
26 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
- include: tarball.yml | ||
|
||
- include: upstart.yml | ||
when: not zookeeper_debian_systemd_enabled | ||
tags: deploy | ||
|
||
- include: systemd.yml | ||
when: zookeeper_debian_systemd_enabled | ||
tags: deploy | ||
|
||
- name: Start zookeeper | ||
service: name=zookeeper state=started enabled=yes | ||
tags: deploy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
--- | ||
|
||
- include: Debian.yml | ||
when: ansible_os_family == 'Debian' | ||
when: ansible_os_family == 'Debian' and zookeeper_debian_apt_install | ||
|
||
- include: Debian-tarball.yml | ||
when: ansible_os_family == 'Debian' and not zookeeper_debian_apt_install | ||
|
||
- include: RedHat.yml | ||
when: ansible_os_family == 'RedHat' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters