Skip to content

Commit 0b7b93f

Browse files
committed
Fixes Facts string comparisons in CentOS 7
- CentOS Project has adopted a new rule for versioning numbers. The major number matches the RHEL major number, but the minor number is generated from the release date. For example, CentOS 7.1407. - Adds Support for Scientific Linux. Change-Id: I8ffb63ba3409c7595a0f13b5ec93c87b1d534d02 Closes-Bug: 1338777 Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com> (cherry picked from commit 0ed5b77)
1 parent d682792 commit 0b7b93f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

manifests/params.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
'Fedora', 'RedHat': {
4545
$special_service_provider = undef
4646
}
47-
'RedHat': {
48-
if ($::operatingsystemrelease < 7) {
47+
'RedHat', 'CentOS', 'Scientific': {
48+
if ($::operatingsystemmajrelease < 7) {
4949
$special_service_provider = 'init'
5050
} else {
5151
$special_service_provider = undef

0 commit comments

Comments
 (0)