-
-
Notifications
You must be signed in to change notification settings - Fork 272
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
Install 'collectd-python' package on Amazon Linux. #671
Conversation
|
It looks like tests are failing because of (very) recent changes to the puppetlabs-apt module -- it's now referencing |
manifests/plugin/python.pp
Outdated
| @@ -38,7 +38,7 @@ | |||
| $ensure_real = 'absent' | |||
| } | |||
|
|
|||
| if $::operatingsystem == 'Fedora' { | |||
| if $::operatingsystem == 'Fedora' or $::operatingsystem == 'Amazon' { | |||
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.
can you use the new facts syntax here? $facts['os']['name'] is probably correct.
spec/default_module_facts.yml
Outdated
| @@ -4,3 +4,7 @@ python_dir: '/usr/local/lib/python2.7/dist-packages' | |||
| operatingsystem: 'Debian' | |||
| lsbdistid: 'Debian' | |||
| lsbdistcodename: 'wheezy' | |||
| os: | |||
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.
This is, in my opinion, a bad idea. We should instead migrate the failing tests to rspec-puppet-facts. I will have a look at it and provide a PR
|
Hi @irgeek , thanks for the PR. Can you please rebase it against latest master? |
|
@irgeek ping |
|
@bastelfreak I've rebased this and updated to use |
|
@irgeek we fixed this in master. Thanks for the PR. |
When the package installation check in
manifests/plugin/python.ppchanged from all RedHat distress to Fedora the module stopped working on Amazon Linux. This change updates the check to install the module on Amazon Linux.