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