Skip to content

Commit

Permalink
ansible: fix mds etcd daemon script
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanHai authored and ilixiaocui committed Jul 23, 2021
1 parent 9cc9df2 commit 8d29f36
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
#
# Copyright (c) 2021 NetEase 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: generate etcd-daemon.sh
template: src=etcd-daemon.sh.j2 dest={{ deploy_dir }}/etcd-daemon.sh mode=0755
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ logDir={{ etcd_log_dir }}
logPath=${logDir}/etcd.log

# pidfile
pidFile={{ deploy_dir }}/etcd.pid
pidFile=${HOME}/etcd.pid

# daemon log
daemonLog=${logDir}/daemon-etcd.log
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ logPath={{ mds_log_dir }}
mdsAddr=

# pidfile
pidFile={{ deploy_dir }}/curve-mds.pid
pidFile=${HOME}/curve-mds.pid

# daemon log
daemonLog=${logPath}/curve-mds-daemon.log
Expand Down
1 change: 1 addition & 0 deletions curve-ansible/rolling_update_curve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
roles:
- { role: install_package, package_name: etcd, tags: install_etcd }
- { role: generate_config, template_name: etcd.conf.yml, conf_path: "{{ etcd_config_path }}", tags: update_etcd_config }
- { role: install_package, package_name: etcd-daemon, tags: install_etcd_daemon }

- name: set etcd leader and follower list
hosts: etcd
Expand Down

0 comments on commit 8d29f36

Please sign in to comment.