Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
Update binlog (#920) (#921)
Browse files Browse the repository at this point in the history
* Update binlog
  • Loading branch information
liubo0127 authored Aug 28, 2019
1 parent 0fa1019 commit bda5ac1
Show file tree
Hide file tree
Showing 17 changed files with 7 additions and 69 deletions.
62 changes: 0 additions & 62 deletions conf/drainer-kafka.toml

This file was deleted.

File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion deploy_drainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
tags:
- drainer
roles:
- { role: drainer_cluster, when: enable_binlog|default(false) }
- { role: drainer, when: enable_binlog|default(false) }

- name: finalizing deployment target
hosts: all
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
fail: msg="Please set initial_commit_ts variable for drainer server in inventory.ini."
when: (initial_commit_ts is undefined) or (initial_commit_ts is defined and initial_commit_ts == "")

- name: "check if the customized config file `{{ playbook_dir }}/conf/{{ inventory_hostname }}_drainer-cluster.toml` existed"
- name: "check if the customized config file `{{ playbook_dir }}/conf/{{ inventory_hostname }}_drainer.toml` existed"
delegate_to: localhost
stat:
path: "{{ playbook_dir }}/conf/{{ inventory_hostname }}_drainer-cluster.toml"
path: "{{ playbook_dir }}/conf/{{ inventory_hostname }}_drainer.toml"
register: drainer_customized_conf_st

- name: "Preflight check - ensure that the customized config file `{{ playbook_dir }}/conf/{{ inventory_hostname }}_drainer-cluster.toml` exists"
- name: "Preflight check - ensure that the customized config file `{{ playbook_dir }}/conf/{{ inventory_hostname }}_drainer.toml` exists"
delegate_to: localhost
fail:
msg: 'You need to create customized config file `{{ playbook_dir }}/conf/{{ inventory_hostname }}_drainer-cluster.toml`.'
msg: 'You need to create customized config file `{{ playbook_dir }}/conf/{{ inventory_hostname }}_drainer.toml`.'
when: drainer_customized_conf_st.stat.exists == False

- name: create deploy directories
Expand All @@ -34,7 +34,7 @@
# when: enable_tls|default(false)

- name: create configuration file
copy: src="{{ playbook_dir }}/conf/{{ inventory_hostname }}_drainer-cluster.toml" dest="{{ deploy_dir }}/conf/drainer.toml" mode=0644 backup=yes
copy: src="{{ playbook_dir }}/conf/{{ inventory_hostname }}_drainer.toml" dest="{{ deploy_dir }}/conf/drainer.toml" mode=0644 backup=yes
register: drainer_conf_st

- name: backup conf file
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion roles/pump/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
when: enable_tls|default(false)

- name: load customized config
include_vars: file={{ playbook_dir }}/conf/pump-cluster.yml name=pump_conf_custom
include_vars: file={{ playbook_dir }}/conf/pump.yml name=pump_conf_custom

- name: load default config
include_vars: file=default.yml name=pump_conf_default
Expand Down

0 comments on commit bda5ac1

Please sign in to comment.