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

Support Ubuntu/bionic, drop Debian 7 & Fedora 25 #605

Merged
merged 4 commits into from
Jul 9, 2018
Merged

Support Ubuntu/bionic, drop Debian 7 & Fedora 25 #605

merged 4 commits into from
Jul 9, 2018

Conversation

mmoll
Copy link
Contributor

@mmoll mmoll commented Jul 7, 2018

No description provided.

@@ -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)
Copy link
Member

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-/
Copy link
Member

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-/.

@ekohl ekohl changed the title support Ubuntu/bionic Support Ubuntu/bionic, drop Debian 7 & Fedora 25 Jul 9, 2018
($::operatingsystem == 'Ubuntu') and (versioncmp($::operatingsystemrelease, '15.04') >= 0)
) {
if
$::operatingsystem == 'Debian' or
Copy link
Member

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 (..) {

Copy link
Contributor Author

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.

@ekohl ekohl merged commit 1ab13bf into theforeman:master Jul 9, 2018
@mmoll mmoll deleted the bionic branch July 9, 2018 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants