Forge Home

tuned

Manage tuned configuration

433 downloads

258 latest version

3.1 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.4.0 (latest)
  • 0.3.1
  • 0.3.0
  • 0.2.1
  • 0.2.0
  • 0.1.0
released Aug 29th 2024
This version is compatible with:
  • Puppet Enterprise 2023.8.x, 2023.7.x, 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 2023.2.x, 2023.1.x, 2021.7.x
  • Puppet >= 7.24 < 9.0.0
  • , , , , ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'deric-tuned', '0.4.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add deric-tuned
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install deric-tuned --version 0.4.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

deric/tuned — version 0.4.0 Aug 29th 2024

puppet-tuned

Puppet Forge Tests

A module to manage tuneD service and its configuration.

Usage

Apply defaults, start service use auto-detected profile:

include tuned

Global configuration (typically stored in /etc/tuned/tuned-main.conf)

tuned::main:
  # Whether to use daemon. Without daemon it just applies tuning. It is
  # not recommended, because many functions don't work without daemon,
  # e.g. there will be no D-Bus, no rollback of settings, no hotplug,
  # no dynamic tuning, ...
  daemon: 1

  # Dynamicaly tune devices, if disabled only static tuning will be used.
  dynamic_tuning: 1

  # How long to sleep before checking for events (in seconds)
  # higher number means lower overhead but longer response time.
  sleep_interval: 1

  # Update interval for dynamic tunings (in seconds).
  # It must be multiply of the sleep_interval.
  update_interval: 10

  # Recommend functionality, if disabled "recommend" command will be not
  # available in CLI, daemon will not parse recommend.conf but will return
  # one hardcoded profile (by default "balanced").
  recommend_command: 1

  # Whether to reapply sysctl from /run/sysctl.d/, /etc/sysctl.d/ and
  # /etc/sysctl.conf.  If enabled, these sysctls will be re-appliead
  # after TuneD sysctls are applied, i.e. TuneD sysctls will not
  # override user-provided system sysctls.
  reapply_sysctl: 1

Switch to a predefined profile:

tuned::profile: balanced

see tuned-adm list for available options.

Custom profiles

Create custom profiles, first level key is the profile name, in this case custom.

tuned::profiles:
  custom:
    main:
      include: balanced
    sysctl:
      net.ipv4.tcp_fastopen: 3

This would generate /etc/tuned/custom/tuned.conf file with corresponding configuration.

Operators => can be used by passing value starting with >

tuned::profile: io
tuned::profiles:
  io:
    disk-sd:
      type: disk
      readahead: '>4096'

Each section correspods to a plugin name. See tuned-adm list plugins for available plugins, e.g.:

$ tuned-adm list plugins
rtentsk
systemd
video
vm
scsi_host
disk
script
sysctl
sysfs
eeepc_she
irqbalance
selinux
modules
usb
bootloader
mounts
cpu
audio
service
scheduler
net