-
-
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
Adds Collectd CI Package repos #588
Conversation
51359d9
to
5147efa
Compare
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.
collectd::repo
can be drastically simplified.
} | ||
} | ||
} | ||
default: { |
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 whole class can be simplified to
$os_class = downcase($::operatingsystem)
if defined("::collectd::repo::${os_class}") {
include "::collectd::repo::$os_class"
} else {
notify{"You have asked to manage_repo on a ${::osfamily} family that doesn't have a repo specified: ${::operatingsystem}":}
}
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.
Nice idea 👍
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 👍
613bd24
to
944eb8e
Compare
some (related) tests are failing:
|
5e78f51
to
7d5d2c0
Compare
@petems See updates to your branch for fixes to Rubucop fails and added 5.7 support. |
@jamtur01 Much appreciated! 👍 |
@igalic The test failures seem to be a) network issue and b) deprecation notice from dependency. Not sure either are related to this PR. Any thoughts? |
d08d7a4
to
785a8ea
Compare
* Allows installation of 5.6 version of Collectd, 5.7 or RC (current master branch) * Refactor repo management behaviour into it's own classes * Add parameter to specify version from bleeding edge repos from CI
785a8ea
to
895ca35
Compare
} else { | ||
if $::operatingsystem == 'Debian' { | ||
warning('Youre trying to use the Ubuntu PPA on a Debian Server, which may cause errors') | ||
warning('We recomend you use the $ci_package_repo parameter if you with to use an upstream repo on Debian') |
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 you with to " sounds like a typo?
Closes #578