This repository has been archived by the owner on Nov 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'remotes/origin/master' into pessimistic…
…-lock
- Loading branch information
Showing
23 changed files
with
732 additions
and
344 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
|
||
dm_master_port: "8261" | ||
dm_master_port: 8261 | ||
dm_master_peer_port: 8291 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,3 @@ | ||
--- | ||
|
||
dm_worker_port: "8262" | ||
flavor: "mysql" | ||
enable_gtid: "false" | ||
relay_binlog_name: "" | ||
relay_binlog_gtid: "" | ||
|
||
mysql_user: "root" | ||
mysql_port: 3306 | ||
dm_worker_port: 8262 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,25 @@ | ||
--- | ||
|
||
- include_tasks: binary_deployment.yml | ||
- name: create dm-master deploy directories | ||
file: | ||
path: '{{ item }}' | ||
state: directory | ||
mode: 0755 | ||
owner: '{{ deploy_user }}' | ||
group: '{{ deploy_user }}' | ||
become: true | ||
with_items: | ||
- "{{ dm_master_log_dir }}" | ||
- "{{ dm_master_data_dir }}" | ||
|
||
- name: create configuration file | ||
template: src=dm-master.toml.j2 dest={{ deploy_dir }}/conf/dm-master.toml mode=0644 backup=yes | ||
register: dm_master_conf_st | ||
- name: deploy dm-master binary | ||
copy: src="{{ resources_dir }}/bin/dm-master" dest="{{ deploy_dir }}/bin/" mode=0755 | ||
|
||
- name: backup conf file | ||
command: mv "{{ dm_master_conf_st.backup_file }}" "{{ backup_dir }}" | ||
when: | ||
- dm_master_conf_st.changed | ||
- dm_master_conf_st.backup_file is defined | ||
- name: create dm-master run script | ||
template: | ||
src: "run_{{ role_name }}.sh.j2" | ||
dest: "{{ deploy_dir }}/scripts/run_{{ role_name }}.sh" | ||
mode: "0755" | ||
backup: yes | ||
|
||
- include_tasks: "systemd_deployment.yml" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,27 @@ | ||
--- | ||
|
||
- include_tasks: binary_deployment.yml | ||
- name: create deploy directories | ||
file: | ||
path: '{{ item }}' | ||
state: directory | ||
mode: 0755 | ||
owner: '{{ deploy_user }}' | ||
group: '{{ deploy_user }}' | ||
become: true | ||
with_items: | ||
- "{{ dm_worker_log_dir }}" | ||
|
||
- name: create configuration file | ||
template: src=dm-worker.toml.j2 dest={{ deploy_dir }}/conf/dm-worker.toml mode=0644 backup=yes | ||
register: dm_worker_conf_st | ||
- name: deploy dm-worker binary | ||
copy: src="{{ resources_dir }}/bin/dm-worker" dest="{{ deploy_dir }}/bin/" mode=0755 | ||
|
||
- name: backup conf file | ||
command: mv "{{ dm_worker_conf_st.backup_file }}" "{{ backup_dir }}" | ||
when: | ||
- dm_worker_conf_st.changed | ||
- dm_worker_conf_st.backup_file is defined | ||
- name: deploy mydumper binary | ||
copy: src="{{ resources_dir }}/bin/mydumper" dest="{{ deploy_dir }}/bin/" mode=0755 | ||
|
||
- name: create dm-worker run script | ||
template: | ||
src: "run_{{ role_name }}.sh.j2" | ||
dest: "{{ deploy_dir }}/scripts/run_{{ role_name }}.sh" | ||
mode: "0755" | ||
backup: yes | ||
|
||
- include_tasks: "systemd_deployment.yml" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,4 @@ grafana_admin_password: "admin" | |
|
||
grafana_exec_vars_only: false | ||
|
||
grafana_version: 4.6.3 | ||
grafana_version: 6.1.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.