Comments (5)
Also using this config on xenial
class { 'fail2ban':
config_file_template => "fail2ban/trusty/etc/fail2ban/jail.conf.erb",
package_ensure => 'latest',
}
Causes this error:
Jul 09 10:24:32 core fail2ban-client[9971]: ERROR Failed during configuration: While reading from '/etc/fail2ban/jail.conf' [line 156]: option 'port' in section 'pam-generic' already exists
Jul 09 10:24:32 core systemd[1]: fail2ban.service: Control process exited, code=exited status=255
Jul 09 10:24:32 core systemd[1]: Failed to start Fail2Ban Service.
from puppet-fail2ban.
Port actually defined twice in [pam-generic]
@dhoppe is this package broken?
from puppet-fail2ban.
I am not able to reproduce this issue.
dhoppe@macbook ~/Projects/vagrant/multi-environment (git)-[master] % vagrant ssh ubuntu_14
Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 4.4.0-36-generic x86_64)
* Documentation: https://help.ubuntu.com/
Last login: Mon Nov 7 16:17:29 2016 from 10.0.2.2
vagrant@ubuntu-14:~$ sudo /etc/init.d/fail2ban status
* Status of authentication failure monitor
* fail2ban is running
Are you sure that you did not place any files under /etc/fail2ban/jail.d/
?
FYI: I just added the support for Ubuntu 16.04.x (Xenial Xerus) and the service is also running.
from puppet-fail2ban.
About xenial support it has been added with #15.
About port issue in [pam-generic]
section, I'm not running puppet these days to test again, but if in your config port is defined twice and you can start fail2ban successfully then there is nothing to worry
from puppet-fail2ban.
@k1-hedayati Thank you for the feedback. I will close this issue, since the configuration of pam-generic
is part of the distributions packaging and the service starts without any error messages.
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.