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
Remove any lsb facts usage #135
Conversation
e77a3f4
to
eadda5c
Compare
0c4d747
to
0928ab4
Compare
Dear @neomilium, thanks for the PR! This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase? You can find my sourcecode at voxpupuli/vox-pupuli-tasks |
3 similar comments
Dear @neomilium, thanks for the PR! This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase? You can find my sourcecode at voxpupuli/vox-pupuli-tasks |
Dear @neomilium, thanks for the PR! This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase? You can find my sourcecode at voxpupuli/vox-pupuli-tasks |
Dear @neomilium, thanks for the PR! This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase? You can find my sourcecode at voxpupuli/vox-pupuli-tasks |
0928ab4
to
7dfaa20
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.
I do not have CentOS nodes configuring fail2ban at hand, but maybe the beaker coverage is a good indication of the consequences of the change. It happens that these failures are caused by a resource and could be easily fixed.
manifests/init.pp
Outdated
@@ -40,7 +44,9 @@ | |||
Array $whitelist = ['127.0.0.1/8', '192.168.56.0/24'], | |||
Hash[String, Hash] $custom_jails = {}, | |||
String[1] $banaction = 'iptables-multiport', | |||
) inherits ::fail2ban::params { | |||
) { | |||
notify { "fail2ban will use ${config_file_template} as template": } |
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 trigger a change, and with --detailed-exitcodes
puppet will exit with 2 and not 0.
This is used in the test suite and seems to be the cause of the failure on the Beaker tests with CentOS I checked.
Instead of a resource, you can use the notice()
function (always shown as far as I can recall), or maybe better info()
(only shown when running with --verbose
) or debug()
(shown when running with --debug
).
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.
OK, but the commit will be removed from final work. I put it here only to help user to test the branch.
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 did not find a similar "notification" in the code in the master
branch so I just dropped that line in 839b602. It indeed fix the beaker integration tests 😉
Just realized I could commit to the repo to update the PR… @neomilium feel free to rework / integrate properly (fixup) my commits. I wanted to reach quickly an all-passing-test-suite 🕺 |
42aaf52
to
cc65c44
Compare
decfa5b
to
c572951
Compare
c572951
to
7522d1f
Compare
7522d1f
to
c63e000
Compare
@smortex Thanks! Could you remove the lsb fact usage in the test you fixed? So this PR will be ready to be merged. |
7c71712
to
2d4114b
Compare
This PR removes any lsb-based facts usage as discussed in #122 and #132.