Red Hat Bugzilla – Bug 1132453
[RFE] Regex support in matcher-values of smart variables and parameters
Last modified: 2017-04-25 12:29:50 EDT
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
Created from redmine issue http://projects.theforeman.org/issues/3636
Upstream bug assigned to orabin@redhat.com
Upstream bug assigned to None
Upstream bug component is Provisioning
*** Bug 1304805 has been marked as a duplicate of this bug. ***
*** Bug 1335847 has been marked as a duplicate of this bug. ***
Upstream bug component is Configuration Management
Upstream bug component is Smart Variables
With the current architecture of smart class parameters, this would require a major reworking of the matchers. We do not believe we will be addressing this in the next few releases, so I am closing this out. If you have additional business information around this bug, please feel free to re-open and provide that information.