|
|
1bfeda |
# Tuned rules for recommend_profile.
|
|
|
1bfeda |
#
|
|
|
1bfeda |
# Syntax:
|
|
|
1bfeda |
# [PROFILE1]
|
|
|
1bfeda |
# KEYWORD11=RE11
|
|
|
1bfeda |
# KEYWORD21=RE12
|
|
|
1bfeda |
#
|
|
|
1bfeda |
# [PROFILE2]
|
|
|
1bfeda |
# KEYWORD21=RE21
|
|
|
1bfeda |
# KEYWORD22=RE22
|
|
|
1bfeda |
|
|
|
1bfeda |
# KEYWORD can be:
|
|
|
1bfeda |
# virt - for RE to match output of virt-what
|
|
|
1bfeda |
# system - for RE to match content of /etc/system-release-cpe
|
|
|
1bfeda |
# process - for RE to match running processes. It can have arbitrary
|
|
|
1bfeda |
# suffix, all process* lines have to match for the PROFILE
|
|
|
1bfeda |
# to match (i.e. the AND operator)
|
|
|
1bfeda |
# /FILE - for RE to match content of the FILE, e.g.:
|
|
|
1bfeda |
# '/etc/passwd=.+'. If file doesn't exist, its RE will not
|
|
|
1bfeda |
# match.
|
|
|
1bfeda |
# chassis_type - for RE to match the chassis type as reported by dmidecode
|
|
|
1bfeda |
# syspurpose_role - for RE to match the system role as reported by syspurpose
|
|
|
1bfeda |
|
|
|
1bfeda |
# All REs for all KEYWORDs have to match for PROFILE to match (i.e. the AND operator).
|
|
|
1bfeda |
# If 'virt' or 'system' is not specified, it matches for every string.
|
|
|
1bfeda |
# If 'virt' or 'system' is empty, i.e. 'virt=', it matches only empty string (alias for '^$').
|
|
|
1bfeda |
# If several profiles matched, the first match is taken.
|
|
|
1bfeda |
#
|
|
|
1bfeda |
# Limitation:
|
|
|
1bfeda |
# Each profile can be specified only once, because there cannot be
|
|
|
1bfeda |
# multiple sections in the configuration file with the same name
|
|
|
1bfeda |
# (ConfigObj limitation).
|
|
|
1bfeda |
# If there is a need to specify the profile multiple times, unique
|
|
|
1bfeda |
# suffix like ',ANYSTRING' can be used. Everything after the last ','
|
|
|
1bfeda |
# is stripped by the parser, e.g.:
|
|
|
1bfeda |
#
|
|
|
1bfeda |
# [balanced,1]
|
|
|
1bfeda |
# /FILE1=RE1
|
|
|
1bfeda |
#
|
|
|
1bfeda |
# [balanced,2]
|
|
|
1bfeda |
# /FILE2=RE2
|
|
|
1bfeda |
#
|
|
|
1bfeda |
# This will set 'balanced' profile in case there is FILE1 matching RE1 or
|
|
|
1bfeda |
# FILE2 matching RE2 or both.
|
|
|
1bfeda |
|
|
|
1bfeda |
[atomic-host]
|
|
|
1bfeda |
virt=
|
|
|
1bfeda |
syspurpose_role=.*atomic.*
|
|
|
1bfeda |
|
|
|
1bfeda |
[atomic-guest]
|
|
|
1bfeda |
virt=.+
|
|
|
1bfeda |
syspurpose_role=.*atomic.*
|
|
|
1bfeda |
|
|
|
1bfeda |
[virtual-guest]
|
|
|
1bfeda |
virt=.+
|
|
|
1bfeda |
|
|
|
1bfeda |
[balanced]
|
|
|
38350f |
syspurpose_role=(.*(desktop|workstation).*)|^$
|
|
|
1bfeda |
chassis_type=.*(Notebook|Laptop|Portable).*
|
|
|
1bfeda |
|
|
|
1bfeda |
[throughput-performance]
|