browbeat/ansible/check/site.yml
akrzos 97bc7bc21e Small fixes/updates to collectd install
+ Fix installing collectd on cephstorage host type
+ Remove old collectd configuration documentation
+ Have check playbook run against cephstorage hosts (previously it was just ceph)

Change-Id: Ic53351da1a6fd9951984301ec16ba75fdd0fe1c7
2017-01-12 10:04:49 -05:00

67 lines
1.5 KiB
YAML

---
#
# Playbook to check OSP install for common performance tuning issues
#
- hosts: localhost
name: Get MySQL Tuner Script
gather_facts: false
vars:
ansible_connection: local
tasks:
- name: Get MySQL Tuner Script
get_url: url={{mysql_tuner_script}} dest={{playbook_dir}}
- hosts: undercloud
name: Checking Undercloud for common Performance Issues
remote_user: stack
roles:
- common
- controller
- undercloud
- keystone
- neutron
- nova
- hosts: controller
name: Checking Controller Nodes for common Performance Issues
remote_user: heat-admin
roles:
- common
- controller
- keystone
- neutron
- nova
- glance
- gnocchi
- hosts: compute
name: Checking Compute Nodes for common Performance Issues
remote_user: heat-admin
roles:
- common
- compute
- nova
- hosts: cephstorage
name: Checking Ceph Hosts for common Performance Issues
remote_user: heat-admin
roles:
- common
- ceph
- hosts: localhost
gather_facts: False
become: false
vars:
ansible_python_interpreter: "/usr/bin/python"
name: Generating bug report
tasks:
- file: "path={{result_dir}} state=directory"
- template: src=templates/bug_report.j2 dest={{result_dir}}/bug_report.log
become: false
- template: src=templates/mysql_report.j2 dest={{result_dir}}/mysql_report.log
become: false
- replace: dest={{result_dir}}/mysql_report.log regexp='\[([^\s+]+)' replace=''
- replace: dest={{result_dir}}/mysql_report.log regexp='\r' replace=''