Skip to content

Commit

Permalink
Merge pull request #290 from xaque208/solarisupdate
Browse files Browse the repository at this point in the history
Update Solaris support for newer Facter
  • Loading branch information
bmjen committed Aug 5, 2015
2 parents fe97d51 + 4b53db9 commit 7c9e36f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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'
{
# Solaris 10
$package_name = [ 'SUNWntpr', 'SUNWntpu' ]
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/ntp_install_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
when 'AIX'
packagename = 'bos.net.tcp.client'
when 'Solaris'
case fact('operatingsystemrelease')
case fact('kernelrelease')
when '5.10'
packagename = ['SUNWntpr','SUNWntpu']
when '5.11'
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/ntp_parameters_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
when 'AIX'
packagename = 'bos.net.tcp.client'
when 'Solaris'
case fact('operatingsystemrelease')
case fact('kernelrelease')
when '5.10'
packagename = ['SUNWntpr','SUNWntpu']
when '5.11'
Expand Down
8 changes: 4 additions & 4 deletions spec/classes/ntp_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -637,9 +637,9 @@
end
end

describe "on osfamily Solaris and operatingsystemrelease 5.10" do
describe "on osfamily Solaris and kernelrelease 5.10" do
let :facts do
super().merge({ :osfamily => 'Solaris', :operatingsystemrelease => '5.10' })
super().merge({ :osfamily => 'Solaris', :kernelrelease => '5.10' })
end

it 'uses the NTP pool servers by default' do
Expand All @@ -649,9 +649,9 @@
end
end

describe "on osfamily Solaris and operatingsystemrelease 5.11" do
describe "on osfamily Solaris and kernelrelease 5.11" do
let :facts do
super().merge({ :osfamily => 'Solaris', :operatingsystemrelease => '5.11' })
super().merge({ :osfamily => 'Solaris', :kernelrelease => '5.11' })
end

it 'uses the NTP pool servers by default' do
Expand Down

0 comments on commit 7c9e36f

Please sign in to comment.