An Ansible Role to install and configure Performance Co-Pilot.
Performance Co-Pilot is a system performance analysis toolkit. The tool can be used for multiple purposes and supports lot's of software via "Performance Metrics Domain Agents (pmda)".
This Role installs Performance Co-Pilot and configures it.
- configure pmcd to collect logs as a "Collector Host"
- configure pmlogger to fetch logs as a "Monitoring Host"
Used Modules:
- Ansible package_facts Module
- Ansible package Module
- Ansible service_facts Module
- Ansible service Module
- Ansible template Module
Install from Ansible Galaxy
ansible-galaxy install while_true_do.srv_pcp
Install from Github
git clone https://github.com/while-true-do/ansible-role-srv_pcp.git while_true_do.srv_pcp
---
# defaults file for while_true_do.srv_pcp
## Package Management
wtd_srv_pcp_package:
- pcp
- pcp-system-tools
# Extra pmda packages, to be installed
# Enabling the metrics is currently not supported.
wtd_srv_pcp_package_pmda: []
# State can be present|latest|absent
wtd_srv_pcp_package_state: "present"
## Configuration Management
# "pmcd_local: 0" permits remote connections, 1 forbids remote connections
wtd_srv_pcp_conf_pmcd_local: 1
wtd_srv_pcp_conf_pmcd_maxpending: 5
wtd_srv_pcp_conf_pmcd_root_agent: 1
wtd_srv_pcp_conf_pmcd_restart_agents: 1
wtd_srv_pcp_conf_pmcd_wait_timeout: 60
wtd_srv_pcp_conf_pmlogger_control_d: []
# Simple example with hostname
# - name: "labrat01"
# host: "labrat01"
# IP example
# - name: "labrat01"
# host: "192.168.0.100"
# FQDN Example
# - name: "labrat01.while-true-do.io"
# host: "labrat01.while-true-do.io"
# Full Example
# - name: "labrat01"
# host: "labrat01"
# primary: "n"
# socks: "n"
# endtime: "24h10m"
## Service Management
wtd_srv_pcp_service:
- pmcd
- pmlogger
# State can be started|stopped
wtd_srv_pcp_service_state: "started"
# Enabled can be true|false
wtd_srv_pcp_service_enabled: true
## Firewalld Management
wtd_srv_pcp_fw_mgmt: true
wtd_srv_pcp_fw_service: "pmcd"
# State can be enabled|disabled
wtd_srv_pcp_fw_service_state: "enabled"
# Zone can be according to defined zones on your machine.
wtd_srv_pcp_fw_service_zone: "public"
Running Ansible Roles can be done in a playbook.
---
- hosts: all
roles:
- role: while_true_do.srv_pcp
- hosts: all
roles:
- role: while_true_do.srv_pcp
wtd_srv_pcp_conf_pmcd_local: 0
- hosts: all
roles:
- role: while_true_do.srv_pcp
wtd_srv_pcp_conf_pmcd_local: 0
wtd_srv_pcp_conf_pmlogger_control_d:
- name: "labrat01"
host: "labrat01.wtd.local"
- name: "labrat02"
host: "192.168.122.10"
- name: "labrat03"
host: "labrat03"
- RedHat Testing is currently not possible in public, due to limitations in subscriptions.
- Some services and features cannot be tested properly, due to limitations in docker.
Most of the "generic" tests are located in the Test Library.
Ansible specific testing is done with Molecule.
Infrastructure testing is done with testinfra.
Automated testing is done with Travis CI.
Thank you so much for considering to contribute. We are very happy, when somebody is joining the hard work. Please fell free to open Bugs, Feature Requests or Pull Requests after reading the Contribution Guideline.
See who has contributed already in the kudos.txt.
This work is licensed under a BSD-3-Clause License.
- Site https://while-true-do.io
- Twitter https://twitter.com/wtd_news
- Code https://github.com/while-true-do
- Mail hello@while-true-do.io
- IRC freenode, #while-true-do
- Telegram https://t.me/while_true_do