Skip to content

Add fail2ban.local config - #270

Open
teluq-pbrideau wants to merge 3 commits into
voxpupuli:masterfrom
teluq-pbrideau:feat/fail2ban-config
Open

teluq-pbrideau wants to merge 3 commits into
voxpupuli:masterfrom
teluq-pbrideau:feat/fail2ban-config

Conversation

@teluq-pbrideau

@teluq-pbrideau teluq-pbrideau commented Nov 9, 2026 •

Copy link
Copy Markdown

Pull Request (PR) description

Add custom configs to /etc/fail2ban/fail2ban.local. I copied how the previous configs were managed to be more consistent with this module.

But there was two ways to deal with this new functionnality:

  • Keep the config_file_* parameters as-is and have weird parameters name for this new config
  • Rename the jail specific parameters to be more consistent with what the configs are

I decided to rename parameters, but it is unfortunately a breaking change...

  • config_file_path -> jail_file_path
  • config_file_template -> jail_file_template

If you want to keep the old parameter as-is, can you please suggest a better parameter name?

Note: I had to use log_level as parameter name instead of loglevel, because it is a puppet metaparam, and the linter did fail. It is a bit inconsistent with the config file, but the best I could think of... Would someone suggest something better?

This Pull Request (PR) fixes the following issues

Fixes #262

@teluq-pbrideau
teluq-pbrideau marked this pull request as draft November 9, 2026 18:39
@teluq-pbrideau
teluq-pbrideau marked this pull request as ready for review November 9, 2026 19:33

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No way to set default logtarget

1 participant