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