aboutsummaryrefslogtreecommitdiffstats
path: root/manifests/profile/base/tuned.pp
blob: 8dfcea09baee7cbd84f4ba5908660fde27098ef5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# == 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}'"
  }
}