puppet-tripleo/manifests/profile/base/tuned.pp
Joe Talerico 4762db7f6b Tuned should be configured properly
Currently tuned uses the wrong profile on compute nodes. This patch will
allow users to update their tuned profile.

Fixes bug 1667524

Change-Id: Ic67aca7f5338ea4bb2d3843201e122c72d97056e
2017-03-13 11:16:07 +00:00

21 lines
461 B
Puppet

# == Class: tripleo::profile::base::tuned
#
# Configures tuned service.
#
# === Parameters:
#
# [*profile*]
# (optional) tuned active profile.
# Defaults to 'throughput-performance'
#
#
class tripleo::profile::base::tuned (
$profile = 'throughput-performance'
) {
exec { 'tuned-adm':
path => ['/bin', '/usr/bin', '/sbin', '/usr/sbin'],
command => "tuned-adm profile ${profile}",
unless => "tuned-adm active | grep -q '${profile}'"
}
}