Project

General

Profile

Actions

Feature #3636

open

Regex support in matcher-values of smart variables and parameters

Added by Finke Lamein over 10 years ago. Updated about 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Parameters
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

The following would be nice functionality I think

Matching on something like: os =~ ^RedHat 6.* would greatly simplify doing stuff for different major versions of a specific distro.

lsbdistcodename is insufficient as all versions of CentOS report Final as codename.
operatingsystemmajrelease is insufficient as well, as that will also match Debian 6.x

Alternatively matching multiple facts using and/or logic would work as well.

osfamily = RedHat and (&&) operatingsystemmajrelease = 6


Related issues 3 (2 open1 closed)

Related to Foreman - Feature #3848: Matcher value for smart variables against arrayNew12/11/2013Actions
Related to Foreman - Feature #3309: Support deep merging of hash structures in smart class parametersClosedOri Rabin10/17/2013Actions
Related to Foreman - Tracker #4470: Usability of parameters and overridesNew

Actions
Actions

Also available in: Atom PDF