Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RH release version comparison #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

vholer
Copy link

@vholer vholer commented Jul 8, 2014

New CentOS 7 can contain version information consisted of three components

# facter | grep -i 7.0.1406
lsbdistdescription => CentOS Linux release 7.0.1406 (Core) 
lsbdistrelease => 7.0.1406
operatingsystemrelease => 7.0.1406

and current simple check $::operatingsystemrelease < '7' fails on Puppet error "Error: comparison of String with 7 failed at". Function versioncmp is better for version comparisons.

@vholer vholer changed the title Fix RH release version comparison RH release version comparison Jul 8, 2014
ybhvf added a commit to NMTCC/puppet-elws that referenced this pull request Jul 21, 2014
This commit updates the puppetfile to preemptively merge
spiette/puppet-selinux#13
ybhvf added a commit to NMTCC/puppet-elws that referenced this pull request Jul 21, 2014
This commit updates the puppetfile to preemptively merge
spiette/puppet-selinux#13
@wadells
Copy link

wadells commented Aug 7, 2014

I just hit this issue with CentOS 7 as well. It'd be excellent to get this fixed in the mainline/forge so that consumers don't need to keep forking the project!

@arenstar
Copy link

yes please

@pszypowicz
Copy link

We used $::operatingsystemmajrelease but this solution is good as well!

Please, merge it back to master!

@eocarragain
Copy link

We also forked to use $::operatingsystemmajrelease for Centos 7. Please merge it back to master. Thanks.

@ghost
Copy link

ghost commented Jun 22, 2015

+1, it would be great to merge this in master.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants