Role - tuned¶
Role Documentation¶
Welcome to the “tuned” role documentation.
Role Defaults¶
This section highlights all of the defaults and variables set within the “tuned” role.
# All variables intended for modification should be placed in this file.
tuned_profile: throughput-performance
tuned_custom_profile: ''
tuned_isolated_cores: ''
# Packages installed on the local system. Allows user to define this list
# otherwise it will inherit from the OS specific variable file(s).
tuned_system_packages: '{{ _tuned_system_packages | default([]) }}'
Role Variables: redhat.yml¶
_tuned_system_packages:
- tuned
Molecule Scenarios¶
Molecule is being used to test the “tuned” role. The following section highlights the drivers in service and provides an example playbook showing how the role is leveraged.
- Driver: delegated
- Driver: delegated
Scenario: isolated¶
Molecule Options¶
managed: false
login_cmd_template: >-
ssh
-o UserKnownHostsFile=/dev/null
-o StrictHostKeyChecking=no
-o Compression=no
-o TCPKeepAlive=yes
-o VerifyHostKeyDNS=no
-o ForwardX11=no
-o ForwardAgent=no
{instance}
ansible_connection_options:
ansible_connection: ssh
Molecule Inventory¶
hosts:
all:
hosts:
instance:
ansible_host: localhost
Example isolated playbook¶
- name: Converge
become: true
hosts: all
vars:
tuned_system_packages: tuned-profiles-cpu-partitioning
tuned_profile: cpu-partitioning
tuned_isolated_cores: '1'
roles:
- role: tuned
Scenario: default¶
Molecule Options¶
managed: false
login_cmd_template: >-
ssh
-o UserKnownHostsFile=/dev/null
-o StrictHostKeyChecking=no
-o Compression=no
-o TCPKeepAlive=yes
-o VerifyHostKeyDNS=no
-o ForwardX11=no
-o ForwardAgent=no
{instance}
ansible_connection_options:
ansible_connection: ssh
Molecule Inventory¶
hosts:
all:
hosts:
instance:
ansible_host: localhost
Example default playbook¶
- name: Converge
become: true
hosts: all
roles:
- role: tuned