Comments (6)
Hi @777dimas, our latest merge worked fine on travis:
https://travis-ci.org/voxpupuli/puppet-fail2ban/builds/463560976?utm_source=github_status&utm_medium=notification
did you try the latest release / master branch? How do you include this module?
from puppet-fail2ban.
Hi.
Ok.I will try latest release / master branch...
Thanks.
from puppet-fail2ban.
I believe this is the issue I started seeing recently. If so, the root of the problem is lsb packages on the OS. For example, on a RedHat-based system, this module requires the redhat-lsb-core
package. On Debian-based systems, it needs lsb-release
. Sometimes these packages are installed by default, but sometimes not. In my case, they were not.
The problem with these packages is that, depending on the distribution, they can install a lot of unneeded software. Additionally, the LSB packages are now a prerequisite for this package, but this package does not ensure that they are installed.
As for the Travis tests, I spent a fair bit of time trying to figure that out on tests for a module I wrote that has puppet/fail2ban
as a dependency. I think the solution was that the Travis tests installed that package as part of their tests:
https://github.com/voxpupuli/puppet-fail2ban/blob/master/spec/spec_helper_acceptance.rb#L18-L21
https://travis-ci.org/voxpupuli/puppet-fail2ban/jobs/463560982#L1081-L1085
I think the real answer here is to get away from using "code names" and instead use os
facts that are standard and come as part of the Puppet core.
from puppet-fail2ban.
@coreone ah yes, you're correct. However, I did a quick grep for lsbdistcodename
in our codebase and didn't found anything in the manifests/
folder. Are you aware of any codeparts that need to be changed? If so, could you provide a PR for this?
from puppet-fail2ban.
Technically, it is not in a manifest, however the README instructs users to use that fact in every example that uses config_file_template
. We can get around this by hard-coding the codename for each OS on which we use this module. However, organizing the templates directory around this fact just feels cumbersome.
I think at the very least there should be a note in the README, to prevent any confusion, that states that in order to use any of the examples with lsbdistcodename
, one must install the LSB packages.
from puppet-fail2ban.
The problem should be solved, because the pull request #135 has removed the use of LSB facts.
from puppet-fail2ban.
Related Issues (20)
- Use of U+2013 (EN DASH) in trusty template causes puppetdb errors HOT 6
- custom_jails are not populating the 'ignoreip" values in the custom_jail.conf.epp template HOT 1
- Update puppet forge HOT 3
- Missing directories when using custom jails HOT 4
- ignoreip in custom jails not populating HOT 3
- Support for RHEL/CentOS 8 HOT 1
- Move templates HOT 8
- Allow multiple data types
- Option to disable service start/stop notifications HOT 1
- Why is firewalld being "deactivated" HOT 2
- Fail2ban does not work on Centos 7
- You cannot specify more than one of content, source, target HOT 3
- custom_jail overrides default filters or correct way to change just logpath in default jail HOT 2
- hiera jails are not picked up
- Add Ubuntu 22.04 Template HOT 4
- Template for Rocky Linux 8 HOT 2
- Change in case for operatingsystem fact on opensuse
- Please add Debian 12 template HOT 3
- puppet-extlib version HOT 1
- Request for release HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppet-fail2ban.