Adding MySQL Tuner to checks
+ Adding undercloud Change-Id: Ide98d1795e17d3b0d13a8af42959522e41c04329 Signed-off-by: Sindhur Malleni <smalleni@redhat.com>
This commit is contained in:
parent
f7e03fd9e5
commit
29d4b8b63b
@ -63,3 +63,8 @@
|
||||
register: rabbit_partitioned
|
||||
changed_when: no
|
||||
failed_when: rabbit_partitioned.rc == 0
|
||||
|
||||
- name: Run MySQL Tuner script
|
||||
script: mysqltuner.pl --nocolor
|
||||
register: mysql_out
|
||||
|
||||
|
@ -49,3 +49,7 @@
|
||||
register: rabbit_partitioned
|
||||
changed_when: no
|
||||
failed_when: rabbit_partitioned.rc == 0
|
||||
|
||||
- name: Run MySQL Tuner script
|
||||
script: mysqltuner.pl --nocolor
|
||||
register: mysql_out
|
||||
|
@ -41,3 +41,7 @@
|
||||
tasks:
|
||||
- local_action: template src=templates/bug_report.j2 dest=./bug_report.log
|
||||
become: false
|
||||
- local_action: template src=templates/mysql_report.j2 dest=./mysql_report.log
|
||||
become: false
|
||||
- replace: dest=mysql_report.log regexp='\[([^\s+]+)' replace=''
|
||||
- replace: dest=mysql_report.log regexp='\r' replace=''
|
||||
|
16
ansible/check/templates/mysql_report.j2
Normal file
16
ansible/check/templates/mysql_report.j2
Normal file
@ -0,0 +1,16 @@
|
||||
# MYSQL Tuner Report
|
||||
|
||||
{% for host in groups['undercloud'] %}
|
||||
-------------------------------------------
|
||||
| Results for host : {{ host }}
|
||||
-------------------------------------------
|
||||
{{hostvars[host]['mysql_out']['stdout']}}
|
||||
{% endfor %}
|
||||
|
||||
|
||||
{% for host in groups['controller'] %}
|
||||
-------------------------------------------
|
||||
| Results for host : {{ host }}
|
||||
-------------------------------------------
|
||||
{{hostvars[host]['mysql_out']['stdout']}}
|
||||
{% endfor %}
|
@ -64,6 +64,12 @@
|
||||
- name: Install PerfKitBenchmarker Openstack requirements into perfkit-venv
|
||||
pip: requirements={{ perfkit_venv }}/PerfKitBenchmarker/requirements-openstack.txt virtualenv={{ perfkit_venv }}
|
||||
|
||||
- name: Install MySQl Tuner
|
||||
git: repo=https://github.com/major/MySQLTuner-perl.git dest={{ home_dir }}/MySQLTuner-perl
|
||||
|
||||
- name: Copy the MYSQl Tuner script into browbeat
|
||||
command: cp {{ home_dir }}/MySQLTuner-perl/mysqltuner.pl {{ browbeat_path }}/ansible/check
|
||||
|
||||
- name: Install rally into rally-venv
|
||||
pip: name=rally virtualenv={{ rally_venv }}
|
||||
become: true
|
||||
|
Loading…
Reference in New Issue
Block a user