Fix zookeeper_package_name for RedHat
Include default zoo.conf file to ensure services start. Change-Id: Ib9aa727c68dc8f0b9a478680254e5737a1d42c58 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
0269a0d408
commit
6d24a519cf
@ -15,10 +15,17 @@
|
||||
# tasks/main.yaml
|
||||
zookeeper_task_manager:
|
||||
- install
|
||||
- config
|
||||
- service
|
||||
|
||||
# tasks/config.yaml
|
||||
zookeeper_file_zoo_conf_dest: /etc/zookeeper/zoo.cfg
|
||||
zookeeper_file_zoo_conf_group: zookeeper
|
||||
zookeeper_file_zoo_conf_mode: 0644
|
||||
zookeeper_file_zoo_conf_owner: zookeeper
|
||||
zookeeper_file_zoo_conf_src: etc/zookeeper/zoo.cfg
|
||||
|
||||
# tasks/install.yaml
|
||||
zookeeper_package_name: zookeeperd
|
||||
zookeeper_package_state: installed
|
||||
|
||||
zookeeper_install_method: package
|
||||
|
23
tasks/config.yaml
Normal file
23
tasks/config.yaml
Normal file
@ -0,0 +1,23 @@
|
||||
# Copyright 2015 Red Hat, Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
---
|
||||
- name: Install zookeeper configuration.
|
||||
become: yes
|
||||
template:
|
||||
dest: "{{ zookeeper_file_zoo_conf_dest }}"
|
||||
group: "{{ zookeeper_file_zoo_conf_group }}"
|
||||
mode: "{{ zookeeper_file_zoo_conf_mode }}"
|
||||
owner: "{{ zookeeper_file_zoo_conf_owner }}"
|
||||
src: "{{ zookeeper_file_zoo_conf_src }}"
|
||||
register: zookeeper_file_zoo_conf
|
@ -12,6 +12,11 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
---
|
||||
- name: Define zookeeper_package_name
|
||||
set_fact:
|
||||
zookeeper_package_name: "{{ __zookeeper_package_name }}"
|
||||
when: zookeeper_package_name is not defined
|
||||
|
||||
- name: Ensure zookeeper is installed.
|
||||
become: yes
|
||||
package:
|
||||
|
29
templates/etc/zookeeper/zoo.cfg
Normal file
29
templates/etc/zookeeper/zoo.cfg
Normal file
@ -0,0 +1,29 @@
|
||||
# The number of milliseconds of each tick
|
||||
tickTime=2000
|
||||
# The number of ticks that the initial
|
||||
# synchronization phase can take
|
||||
initLimit=10
|
||||
# The number of ticks that can pass between
|
||||
# sending a request and getting an acknowledgement
|
||||
syncLimit=5
|
||||
# the directory where the snapshot is stored.
|
||||
# do not use /tmp for storage, /tmp here is just
|
||||
# example sakes.
|
||||
dataDir=/var/lib/zookeeper/data
|
||||
dataLogDir=/var/lib/zookeeper/log
|
||||
# the port at which the clients will connect
|
||||
clientPort=2181
|
||||
# the maximum number of client connections.
|
||||
# increase this if you need to handle more clients
|
||||
#maxClientCnxns=60
|
||||
#
|
||||
# Be sure to read the maintenance section of the
|
||||
# administrator guide before turning on autopurge.
|
||||
#
|
||||
# http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance
|
||||
#
|
||||
# The number of snapshots to retain in dataDir
|
||||
#autopurge.snapRetainCount=3
|
||||
# Purge task interval in hours
|
||||
# Set to "0" to disable auto purge feature
|
||||
#autopurge.purgeInterval=1
|
@ -25,3 +25,4 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
---
|
||||
__zookeeper_package_name: zookeeperd
|
||||
|
@ -12,3 +12,4 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
---
|
||||
__zookeeper_package_name: zookeeper
|
||||
|
Loading…
Reference in New Issue
Block a user