Git Product home page Git Product logo

Comments (6)

bastelfreak avatar bastelfreak commented on July 4, 2024

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.

777dimas avatar 777dimas commented on July 4, 2024

Hi.
Ok.I will try latest release / master branch...
Thanks.

from puppet-fail2ban.

coreone avatar coreone commented on July 4, 2024

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.

bastelfreak avatar bastelfreak commented on July 4, 2024

@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.

coreone avatar coreone commented on July 4, 2024

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.

dhoppe avatar dhoppe commented on July 4, 2024

The problem should be solved, because the pull request #135 has removed the use of LSB facts.

from puppet-fail2ban.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.