-
Notifications
You must be signed in to change notification settings - Fork 328
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
Add Solaris 11 support. #177
Conversation
@@ -136,7 +136,10 @@ | |||
$config = '/etc/inet/ntp.conf' | |||
$driftfile = '/var/ntp/ntp.drift' | |||
$keys_file = '/etc/inet/ntp.keys' | |||
$package_name = [ 'SUNWntpr', 'SUNWntpu' ] | |||
$package_name = $operatingsystemrelease ? { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you use $::operatingsystemrelease
here?
And add |
The only one I didn't do is https://github.com/puppetlabs/puppetlabs-ntp/blob/master/spec/classes/ntp_spec.rb#L253 because it doesn't matter if the operating system release is 5.10 or 5.11. |
This commit is a simple change to Class['ntp::params'] which adds a selector to the default Solaris data so that the proper package name is managed on Solaris 11. With out this small change Solaris 11 hosts will attempt to improperly install package names following the old Solaris 10 standard.
nvm. Added |
else | ||
packagename = 'ntp' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we removing the default assumption that the package is called ntp?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point...
See #184 |
This commit is a simple change to Class['ntp::params'] which adds a
selector to the default Solaris data so that the proper package name
is managed on Solaris 11.
With out this small change Solaris 11 hosts will attempt to improperly
install package names following the old Solaris 10 standard.