diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-03-30 20:46:39 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-03-30 20:46:39 +0000 |
commit | f36a4ac6bbb7c4031b1ec5685af2ac2e7efa657e (patch) | |
tree | 1b12b2df2de4433bccdf530cd74353365745907c /manifests/profile/base | |
parent | c2d3bac2d67284c39d1d9e3995d2c76d945f794d (diff) | |
parent | 4762db7f6b70487ad260d6fedaf873f26e19eeb9 (diff) |
Merge "Tuned should be configured properly"
Diffstat (limited to 'manifests/profile/base')
-rw-r--r-- | manifests/profile/base/tuned.pp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/manifests/profile/base/tuned.pp b/manifests/profile/base/tuned.pp new file mode 100644 index 0000000..8dfcea0 --- /dev/null +++ b/manifests/profile/base/tuned.pp @@ -0,0 +1,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}'" + } +} |