1
0
Fork 0
tuned/recommend.conf
Jaroslav Škarvada df25bb8775 recommend: added generic file check
Example of recommend.conf content:

[powersave]
/etc/machine.conf=.*laptop.*

This will recommend powersave profile if there is /etc/machine.conf containing
string 'laptop'. The check will not match if the file doesn't exist.

To just check for file existence:

[powersave]
/etc/machine.conf=.*

This will match if there is /etc/machine.conf file.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2015-06-10 17:11:49 +02:00

29 lines
749 B
Text

# Tuned rules for recommend_profile.
#
# The 'virt' RE matches virt-what output.
# The 'system' RE matches /etc/system-release-cpe.
# If starting with / it means path to file which content needs to match RE,
# e.g. '/etc/passwd=.+'
# If file not exists, no RE will match.
#
# Al 'virt', 'system' and files needs to match for profile to match.
# If 'virt' or 'system' is not specified, it matches for every string.
# If 'virt' or 'system' is empty, i.e. 'virt=', it matches only empty string (alias for '^$').
# If several profiles matched, the first match is taken.
[atomic-host]
virt=
system=.*atomic.*
[atomic-guest]
virt=.+
system=.*atomic.*
[throughput-performance]
virt=
system=.*(computenode|server).*
[virtual-guest]
virt=.+
[balanced]