/ansible-role-sys_tuned

An Ansible Role to install and configure tuned.

Primary LanguagePythonBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Github (tag) Github (license) Github (issues) Github (pull requests)

Travis (com)

Ansible (min. version) Ansible (platforms) Ansible (tags)

Ansible Role: sys_tuned

An Ansible Role to install and configure tuned.

Motivation

Tuned is a very powerful tool to configure kernel parameters and Linux Systems.

Description

This role installs tuned and set a proper profile for the system.

Requirements

Used Modules:

Installation

Install from Ansible Galaxy

ansible-galaxy install while_true_do.sys_tuned

Install from Github

git clone https://github.com/while-true-do/ansible-role-sys_tuned.git while_true_do.sys_tuned

Usage

Role Variables

---
# defaults file for while_true_do.sys_tuned

## Package Management
wtd_sys_tuned_packages:
  - tuned
  - tuned-profiles-cpu-partitioning
# State can be present|latest|absent
wtd_sys_tuned_packages_state: "present"

## Service Management
wtd_sys_tuned_service: "tuned"
# State can be started|stopped|restarted
wtd_sys_tuned_service_state: "started"
wtd_sys_tuned_service_enabled: true

## Configuration Management
# Which profile to use
# auto|balanced|virt-guest|powersave|hpc-compute|desktop|etc...
wtd_sys_tuned_profile: "auto"

Example Playbook

Running Ansible Roles can be done in a playbook.

Simple

---
- hosts: all
  roles:
    - role: while_true_do.sys_tuned

Known Issues

  1. RedHat Testing is currently not possible in public, due to limitations in subscriptions.
  2. Some services and features cannot be tested properly, due to limitations in docker.

Testing

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.

Contribute

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.

License

This work is licensed under a BSD-3-Clause License.

Contact