This is an automated email from the ASF dual-hosted git repository.
mmerli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new 1933025 Streamline Ansible setup (#1291)
1933025 is described below
commit 1933025776409f689b612197128c2fa65d52917e
Author: Luc Perkins <[email protected]>
AuthorDate: Sun Apr 1 15:40:38 2018 -0700
Streamline Ansible setup (#1291)
* remove bookkeeper.service config file
* remove bookkeeper systemd service from ansible playbook config
---
deployment/terraform-ansible/deploy-pulsar.yaml | 10 +------
.../terraform-ansible/templates/bookkeeper.service | 32 ----------------------
.../terraform-ansible/templates/pulsar.service | 2 +-
3 files changed, 2 insertions(+), 42 deletions(-)
diff --git a/deployment/terraform-ansible/deploy-pulsar.yaml
b/deployment/terraform-ansible/deploy-pulsar.yaml
index 9129d38..c984b9d 100644
--- a/deployment/terraform-ansible/deploy-pulsar.yaml
+++ b/deployment/terraform-ansible/deploy-pulsar.yaml
@@ -56,7 +56,7 @@
zookeeper_servers: "{{ groups['zookeeper']|map('extract', hostvars,
['ansible_default_ipv4', 'address'])|map('regex_replace', '(.*)', '\\1:2181') |
join(',') }}"
service_url: "pulsar://{{ hostvars[groups['pulsar'][0]].public_ip
}}:6650/"
http_url: "http://{{ hostvars[groups['pulsar'][0]].public_ip }}:8080/"
- pulsar_version: "1.20.0-incubating"
+ pulsar_version: "1.22.0-incubating"
- name: Download Pulsar binary package
unarchive:
@@ -129,14 +129,6 @@
- template:
src: "../templates/bookkeeper.conf"
dest: "/opt/pulsar/conf/bookkeeper.conf"
- - name: Install bookkeeper systemd service
- template:
- src: "../templates/bookkeeper.service"
- dest: "/etc/systemd/system/bookkeeper.service"
- - systemd:
- state: restarted
- daemon_reload: yes
- name: "bookkeeper"
- name: Set up Pulsar
hosts: pulsar
diff --git a/deployment/terraform-ansible/templates/bookkeeper.service
b/deployment/terraform-ansible/templates/bookkeeper.service
deleted file mode 100644
index 0c90661..0000000
--- a/deployment/terraform-ansible/templates/bookkeeper.service
+++ /dev/null
@@ -1,32 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you 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.
-#
-
-[Unit]
-Description=Bookkeeper
-After=network.target
-
-[Service]
-ExecStart=/opt/pulsar/bin/pulsar bookie
-WorkingDirectory=/opt/pulsar
-RestartSec=1s
-Restart=on-failure
-Type=simple
-
-[Install]
-WantedBy=multi-user.target
diff --git a/deployment/terraform-ansible/templates/pulsar.service
b/deployment/terraform-ansible/templates/pulsar.service
index a30b012..e4e02d3 100644
--- a/deployment/terraform-ansible/templates/pulsar.service
+++ b/deployment/terraform-ansible/templates/pulsar.service
@@ -22,7 +22,7 @@ Description=Pulsar Broker
After=network.target
[Service]
-ExecStart=/opt/pulsar/bin/pulsar broker
+ExecStart=/opt/pulsar/bin/pulsar broker --run-bookie --run-bookie-autorecovery
WorkingDirectory=/opt/pulsar
RestartSec=1s
Restart=on-failure
--
To stop receiving notification emails like this one, please contact
[email protected].