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

Update Solaris support for newer Facter #290

Merged
merged 1 commit into from
Aug 5, 2015
Merged

Update Solaris support for newer Facter #290

merged 1 commit into from
Aug 5, 2015

Conversation

zachfi
Copy link
Contributor

@zachfi zachfi commented Aug 4, 2015

Due to a change in behavior between Facter 1.x and 2.x, the
operatingsystemrelease fact is no longer a desireable determination
of Solaris release. This work updates the module to use the
kernelrelease fact in place of operatingsystemrelease as it does not
change behavior and is likely a more accurate representation of the
version of Solaris being tested.

@@ -229,7 +229,7 @@
$config = '/etc/inet/ntp.conf'
$driftfile = '/var/ntp/ntp.drift'
$keys_file = '/etc/inet/ntp.keys'
if $::operatingsystemrelease =~ /^(5\.10|10|10_u\d+)$/
if $::kernelrelease =~ /^(5\.10|10|10_u\d+)$/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By changing this to use the kernelrelease fact, I think we can clean up the conditional to only check for 5.10.

Due to a change in behavior between Facter 1.x and 2.x, the
operatingsystemrelease fact is no longer a desireable determination
of Solaris release.  This work updates the module to use the
kernelrelease fact in place of operatingsystemrelease as it does not
change behavior and is likely a more accurate representation of the
version of Solaris being tested.
bmjen added a commit that referenced this pull request Aug 5, 2015
Update Solaris support for newer Facter
@bmjen bmjen merged commit 7c9e36f into puppetlabs:master Aug 5, 2015
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.

2 participants