4762db7f6b
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
21 lines
461 B
Puppet
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}'"
|
|
}
|
|
}
|