-
-
Notifications
You must be signed in to change notification settings - Fork 131
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 ubuntu 18.04 support #130
Add ubuntu 18.04 support #130
Conversation
I have no idea why the individual test is failing. I can't be because of the 4 lines I've added, or at least I can't see how it could be?? Any ideas? |
Hi, there is a missing space between 'Ubuntu' and and |
Ok fixed the space, but the tests still fail. I also created another fork with a change to just the README it still fails the same test, with no actual code change. |
Hi @cliff-wakefield, thanks for the PR! Can you please rebase against our latest master? That will pull in #134. Please add Ubuntu 18.04 to our metadata.json. |
manifests/params.pp
Outdated
@@ -473,6 +473,9 @@ | |||
if $::operatingsystem == 'Debian' and $::operatingsystemmajrelease >= '9' { | |||
$varnetsnmp_owner = 'Debian-snmp' | |||
$varnetsnmp_group = 'Debian-snmp' | |||
} elsif $::operatingsystem == 'Ubuntu' and $::operatingsystemmajrelease >= '18.04' { |
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.
Those facts are legacy and we try to get rid of them in new code + migrate the existing codebase in parallel. Can you please use $facts['os']['name']
and $facts['os']['release']['major']
?
The tests will fail with that, can you please add a rspec-puppet-facts based test for this?
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 have rebased to master, I have updated the metadata.
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.
Switching params.pp to use the facts hash is much larger change, that may well need doing but is larger in scope than just adding Ubuntu 18.04 support.
I did some inline comments. Let us know if you've got any questions. You can reply here or reach out to us on our IRC channel #voxpupuli on freenode or https://puppetcommunity.slack.com |
Looking at the code again the fix done under PR #134 fixes the issue I believe anyway as it now numerically compares the versions of Ubuntu so I don't think this PR is needed? |
It only compares the Debian version at the moment, right? |
I just did a test on the changed line in params.pp in PR #134.
It didn't work for me. So I guess there is a need to test for Ubuntu 18.04. Maybe converts the number test to use versioncmp and in the PR. Then Travis might be more happy? |
Could you rebase this? There are a lot of irrelevant changes from master in this PR that make it hard to see your changes. |
cb92910
to
fb7e12a
Compare
@ekohl rebased and standardised the Operating systems version test using versioncmp. |
Can this also be squashed before merge? |
fb7e12a
to
34828b6
Compare
34828b6
to
7ab970b
Compare
I think this issue is related in #168 |
Under Ubuntu 18.04 it appears the SNMP user and group have changed.
This request simply adds a condition to set the user and group correctly in params.pp