Skip to content

Commit

Permalink
Fixes rodjek#34 - Ubuntu Xenial and up support (rodjek#43)
Browse files Browse the repository at this point in the history
* Fixes rodjek#34 - Ubuntu Xenial and up support
  • Loading branch information
edestecd authored and robinbowes committed Sep 18, 2016
1 parent 6937d91 commit 5bf6fc4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
13 changes: 5 additions & 8 deletions manifests/defaults.pp
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,12 @@
'Debian': {

if !defined( Logrotate::Conf['/etc/logrotate.conf'] ) {
case $::lsbdistcodename {
'trusty': {
logrotate::conf {'/etc/logrotate.conf':
su_group => 'syslog',
}
}
default: {
logrotate::conf {'/etc/logrotate.conf': }
if versioncmp($::lsbdistrelease, '14.04') >= 0 {
logrotate::conf {'/etc/logrotate.conf':
su_group => 'syslog',
}
} else {
logrotate::conf {'/etc/logrotate.conf': }
}
}

Expand Down
2 changes: 1 addition & 1 deletion spec/defines/conf_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{
osfamily: 'Debian',
operatingsystem: 'Debian',
lsbdistcodename: 'Imaginary'
lsbdistrelease: 'Imaginary'
}
end
context 'with an alphanumeric title' do
Expand Down
2 changes: 1 addition & 1 deletion spec/defines/rule_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{
osfamily: 'Debian',
operatingsystem: 'Debian',
lsbdistcodename: 'Imaginary'
lsbdistrelease: 'Imaginary'
}
end
context 'with an alphanumeric title' do
Expand Down

0 comments on commit 5bf6fc4

Please sign in to comment.