Skip to content

Commit

Permalink
Fixes Facts string comparisons in CentOS 7
Browse files Browse the repository at this point in the history
- 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 <[email protected]>
  • Loading branch information
strider committed Jul 9, 2014
1 parent a958a5e commit 0ed5b77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
'Fedora', 'RedHat': {
$special_service_provider = undef
}
'RedHat': {
if ($::operatingsystemrelease < 7) {
'RedHat', 'CentOS', 'Scientific': {
if ($::operatingsystemmajrelease < 7) {
$special_service_provider = 'init'
} else {
$special_service_provider = undef
Expand Down

0 comments on commit 0ed5b77

Please sign in to comment.