Puppet Class: tuned::profile::enable_profile
- Defined in:
- manifests/profile/enable_profile.pp
Overview
Class: tuned::profile::enable_profile
Parameters:
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'manifests/profile/enable_profile.pp', line 5
class tuned::profile::enable_profile (
String $profile_name = $tuned::profile_name,
$tuned_conf_dir = $tuned::tuned_conf_dir,
$tuned_pkg = $tuned::tuned_pkg,
) {
exec { "tuned-adm_enable_profile_${profile_name}":
command => "tuned-adm profile ${profile_name}",
path => '/usr/bin:/usr/sbin/:/bin:/sbin:/usr/local/bin:/usr/local/sbin',
unless => "grep -q -e '^${profile_name}\$' ${tuned_conf_dir}/active_profile",
require => Package[$tuned_pkg],
}
}
|