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

Install 'collectd-python' package on Amazon Linux. #671

Merged
merged 1 commit into from
Oct 23, 2017

Conversation

irgeek
Copy link
Contributor

@irgeek irgeek commented May 25, 2017

When the package installation check in manifests/plugin/python.pp changed 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.

@irgeek
Copy link
Contributor Author

irgeek commented May 26, 2017

It looks like tests are failing because of (very) recent changes to the puppetlabs-apt module -- it's now referencing $facts['os']['name'].

@@ -38,7 +38,7 @@
$ensure_real = 'absent'
}

if $::operatingsystem == 'Fedora' {
if $::operatingsystem == 'Fedora' or $::operatingsystem == 'Amazon' {
Copy link
Member

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.

@@ -4,3 +4,7 @@ python_dir: '/usr/local/lib/python2.7/dist-packages'
operatingsystem: 'Debian'
lsbdistid: 'Debian'
lsbdistcodename: 'wheezy'
os:
Copy link
Member

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

@bastelfreak
Copy link
Member

Hi @irgeek , thanks for the PR. Can you please rebase it against latest master?

@bastelfreak
Copy link
Member

@irgeek ping

@irgeek
Copy link
Contributor Author

irgeek commented Oct 23, 2017

@bastelfreak I've rebased this and updated to use $facts['os']['name'], but tests on master are failing at the moment so they're failing here too.

@bastelfreak
Copy link
Member

@irgeek we fixed this in master. Thanks for the PR.

@bastelfreak bastelfreak merged commit d95db33 into voxpupuli:master Oct 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants