Skip to content

Commit

Permalink
Merge "Donot start zookeeper at installation"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Nov 10, 2017
2 parents 9690cd6 + 1f88786 commit 5f73360
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
11 changes: 11 additions & 0 deletions playbooks/roles/zookeeper/files/policy-rc.d
@@ -0,0 +1,11 @@
#!/bin/bash
if [ "${1}" = "--quiet" ]; then
name="$2"
else
name="$1"
fi
sensitive_services_list=/etc/sensitive_services
if [ -e $sensitive_services_list ]; then
grep -x "$name" "$sensitive_services_list" && exit 101
fi
exit 0
6 changes: 6 additions & 0 deletions playbooks/roles/zookeeper/tasks/install/Debian.yml
@@ -1,4 +1,10 @@
---
- name: Avoid zookeeper starting as a part of installation
lineinfile: dest=/etc/sensitive_services line=zookeeper state=present create=yes

- name: install policy-rc.d to selectively disable automated service start by apt
copy: src=policy-rc.d dest=/usr/sbin/policy-rc.d mode=0755

- name: Install zookeeper with apt
include: apt.yml
when: zookeeper_debian_apt_install
Expand Down

0 comments on commit 5f73360

Please sign in to comment.