aboutsummaryrefslogtreecommitdiffstats
path: root/manifests
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-03-30 20:46:39 +0000
committerGerrit Code Review <review@openstack.org>2017-03-30 20:46:39 +0000
commitf36a4ac6bbb7c4031b1ec5685af2ac2e7efa657e (patch)
tree1b12b2df2de4433bccdf530cd74353365745907c /manifests
parentc2d3bac2d67284c39d1d9e3995d2c76d945f794d (diff)
parent4762db7f6b70487ad260d6fedaf873f26e19eeb9 (diff)
Merge "Tuned should be configured properly"
Diffstat (limited to 'manifests')
-rw-r--r--manifests/profile/base/tuned.pp20
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}'"
+ }
+}