Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/giovtorres/ansible-role-tuned
Ansible Role - tuned
https://github.com/giovtorres/ansible-role-tuned
ansible performance role system tuned
Last synced: about 2 months ago
JSON representation
Ansible Role - tuned
- Host: GitHub
- URL: https://github.com/giovtorres/ansible-role-tuned
- Owner: giovtorres
- Created: 2017-07-24T00:37:36.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-05-17T21:33:17.000Z (8 months ago)
- Last Synced: 2024-05-17T22:32:52.473Z (8 months ago)
- Topics: ansible, performance, role, system, tuned
- Language: Jinja
- Size: 11.7 KB
- Stars: 4
- Watchers: 3
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ansible Role: Tuned
[![Build Status](https://travis-ci.org/giovtorres/ansible-role-tuned.svg?branch=master)](https://travis-ci.org/giovtorres/ansible-role-tuned)
[![Ansible Role](https://img.shields.io/ansible/role/19447.svg)](https://galaxy.ansible.com/giovtorres/tuned/)Installs and configures the tuned daemon for setting system tuning profiles.
Supported on EL7.## Requirements
None.
## Role Variables
The available built-in profiles on EL7 are:
- balanced
- desktop
- latency-performance
- network-latency
- network-throughput
- powersave
- throughput-performance
- virtual-guest
- virtual-hostChange the active tuned profile using one of the built-in profiles above:
tuned_active_builtin_profile: "throughput-performance"
Change the active tuned profile by creating a custom tuned profile. *See
example below on how to build a custom tuned profile*:
tuned_active_custom_profile: ""## Dependencies
None.
## Example Playbooks
To use the role's default profile, `throughput-performance`, just apply the
role:- hosts: servers
roles:
- giovtorres.tunedTo use one of the other available built-in profiles, set the
`tuned_active_builtin_profile` variable:- hosts: servers
vars:
tuned_active_builtin_profile: "virtual-guest"
roles:
- giovtorres.tunedTo build a custom profile, create a dictionary using the
`tuned_active_custom_profile` variable with the **name** and **sections**
items, where **sections** contains the name of the section in the config file
and a list of option/value pairs that go into that given section.- hosts: all
vars:
tuned_active_custom_profile:
name: my_custom_profile
sections:
- name: main
params:
- option: summary
value: Test
- option: include
value: throughput-performance
- name: sysctl
params:
- option: vm.dirty_ratio
value: 30
- option: vm.swappiness
value: 30
- name: vm
params:
- option: transparent_hugepages
value: never
roles:
- giovtorres.tunedThe above playbook results in the following configuration output:
```ini
[main]
summary=Test
include=throughput-performance[sysctl]
vm.dirty_ratio=30
vm.swappiness=30[vm]
transparent_hugepages=never
```## License
BSD