-
Notifications
You must be signed in to change notification settings - Fork 229
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
Support Ubuntu/bionic, drop Debian 7 & Fedora 25 #605
Conversation
manifests/params.pp
Outdated
@@ -330,7 +330,7 @@ | |||
'Debian' : { | |||
$agent_restart_command = "/usr/sbin/service ${service_name} reload" | |||
if ( | |||
($::operatingsystem == 'Debian') and (versioncmp($::operatingsystemrelease, '8.0') >= 0) or | |||
($::operatingsystem == 'Debian') or | |||
($::operatingsystem == 'Ubuntu') and (versioncmp($::operatingsystemrelease, '15.04') >= 0) |
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.
I know these braces were already here, but they're weird. Technically they're correct but they don't add anything either.
@@ -23,7 +23,7 @@ | |||
should contain_class('puppet::agent::service::cron').with(:enabled => false) | |||
end | |||
case os | |||
when /\Adebian-(8|9)/, /\A(redhat|centos|scientific)-7/, /\Afedora-/, /\Aubuntu-16/, /\Aarchlinux-/ | |||
when /\Adebian-(8|9)/, /\A(redhat|centos|scientific)-7/, /\Afedora-/, /\Aubuntu-(16|18)/, /\Aarchlinux-/ |
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.
If we've dropped Debian 7 then it can be simplified to /\Adebian-/
.
manifests/params.pp
Outdated
($::operatingsystem == 'Ubuntu') and (versioncmp($::operatingsystemrelease, '15.04') >= 0) | ||
) { | ||
if | ||
$::operatingsystem == 'Debian' or |
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.
Indenting looks a bit weird here. Would it be good to keep parenthesis around the entire statement? if (..) {
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.
Done. I did put the whole condition into one long line as it would look more strange because of the formatting rules we have in place otherwise.
No description provided.