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

Commit

Permalink
update dashboard init (#1226) (#1237)
Browse files Browse the repository at this point in the history
* update dashboard init
  • Loading branch information
liubo0127 authored Mar 26, 2020
1 parent 1ce164b commit cd51c5a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 15 deletions.
6 changes: 0 additions & 6 deletions deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,3 @@
roles:
- perf_tools

- name: deploying init pd topo scripts
hosts: localhost
tags:
- always
roles:
- dashboard_topo
5 changes: 2 additions & 3 deletions excessive_rolling_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,5 @@
- hosts: localhost
tags:
- always
tasks:
- name: init pd topo
shell: "cd {{ playbook_dir }}/scripts && ./dashboard_topo.sh"
roles:
- { role: dashboard_topo }
5 changes: 5 additions & 0 deletions roles/dashboard_topo/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@
src: "init_dashboard_topo.sh.j2"
dest: "{{ playbook_dir }}/scripts/dashboard_topo.sh"
mode: "0755"

- name: init pd topo
shell: "./dashboard_topo.sh"
args:
chdir: "{{ playbook_dir }}/scripts"
5 changes: 2 additions & 3 deletions rolling_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,5 @@
- hosts: localhost
tags:
- always
tasks:
- name: init pd topo
shell: "cd {{ playbook_dir }}/scripts && ./dashboard_topo.sh"
roles:
- { role: dashboard_topo }
6 changes: 3 additions & 3 deletions start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,6 @@
- hosts: localhost
tags:
- always
tasks:
- name: init dashboard topology
shell: "cd {{ playbook_dir }}/scripts && ./dashboard_topo.sh"
roles:
- { role: dashboard_topo }

0 comments on commit cd51c5a

Please sign in to comment.