Files
confdroid_fail2ban/README.md

101 lines
3.5 KiB
Markdown
Raw Normal View History

2021-09-07 15:44:51 +02:00
# Readme
2021-09-07 15:38:08 +02:00
2020-12-01 19:01:32 +01:00
[![Build Status](https://pipelines.confdroid.com/buildStatus/icon?job=cd_fail2ban)](https://pipelines.confdroid.com/job/cd_fail2ban/)
2017-08-03 12:01:32 +01:00
2021-09-07 15:38:08 +02:00
[[_TOC_]]
## Synopsis
2017-08-03 12:01:32 +01:00
Fail2Ban is an intrusion prevention software framework that protects computer servers from brute-force attacks.
`cd_fail2ban` is a Puppet module to automate installation, configuration and management of fail2ban settings and rules.
2021-09-07 15:38:08 +02:00
## WARNING
2017-08-03 12:01:32 +01:00
`**__!!! Attention: Never use this puppet module on systems which have been previously configured manually. It is impossible to predict how and what would have been configured, hence previuos configurations outside the scope of this module may be overwritten! Automated configurations require a test environment to verify that the module suits the purpose intended by the user, as well as tune the parameters, before deploying into live production!!! __**`
2021-09-07 15:38:08 +02:00
## Features
2017-08-03 12:01:32 +01:00
Installation
2021-09-07 15:38:08 +02:00
2017-08-03 12:01:32 +01:00
* install required binaries
Configuration
2021-09-07 15:38:08 +02:00
* manage directory structure (file system permissions, selinux context)
2021-09-07 16:08:56 +02:00
* manage configuration files (file system permissions, selinux context, content based on parameters)
Service
2021-09-07 15:38:08 +02:00
* manage service status (running or stopped)
2017-08-03 14:01:25 +01:00
2021-09-07 15:38:08 +02:00
## Repo Documentation
2021-09-07 15:44:51 +02:00
2017-08-03 12:01:32 +01:00
See the full Puppet documentation in docs/index.html
2021-09-07 15:38:08 +02:00
## Dependencies
2017-08-03 12:01:32 +01:00
All dependencies must be included in the catalogue.
2021-09-07 15:38:08 +02:00
* [cd_resources](https://sourcecode.confdroid.com/12WW1160/cd_resources) to manage yum base repos
* [cd_firewall](https://sourcecode.confdroid.com/12WW1160/cd_firewall) or puppetlabs-firewall to manage firewall settings (optional)
2017-08-03 12:01:32 +01:00
2021-09-07 15:38:08 +02:00
## Deployment
2017-08-03 12:01:32 +01:00
2021-09-07 15:38:08 +02:00
* native Puppet deployment
2017-08-03 12:01:32 +01:00
via site.pp or nodes.pp
2021-09-07 15:49:57 +02:00
```bash
2017-08-03 12:01:32 +01:00
node 'example.example.net' {
2021-09-07 15:49:57 +02:00
include cd_elasticsearch
2017-08-03 12:01:32 +01:00
}
```
2021-09-07 15:49:57 +02:00
2021-09-07 15:38:08 +02:00
* through Foreman:
2021-09-07 15:49:57 +02:00
In order to apply parameters through Foreman, **__cd_elasticsearch::params__** must be added to the host or host group in question.
2017-08-03 12:01:32 +01:00
See [more details about class deployment on Confdroid.com](https://confdroid.com/2017/05/deploying-our-puppet-modules/).
2021-09-07 15:38:08 +02:00
## Parameters
2017-08-03 12:01:32 +01:00
2021-09-07 15:38:08 +02:00
The parameters are documented via puppet strings and [listed here](/docs/index.html). Simply open in web browser.
2017-08-03 12:01:32 +01:00
2021-09-07 15:38:08 +02:00
## SELINUX
2017-08-03 12:01:32 +01:00
All files and directories are configured with correct selinux context. If selinux is disabled, these contexts are ignored.
2021-09-07 15:38:08 +02:00
## Known Problems
2017-08-03 14:01:25 +01:00
* firewalld: firewalld is auto-installed on CentOS7 as dependency of fail2ban by yum.
2017-08-03 12:01:32 +01:00
2021-09-07 15:38:08 +02:00
## Support
2020-12-09 16:05:43 +01:00
* OS: CentOS 7
2021-09-07 16:08:56 +02:00
* Puppet 5
2017-08-03 12:01:32 +01:00
2021-09-07 15:38:08 +02:00
## Tests
2017-08-03 12:01:32 +01:00
* Puppet Lint
* excluded tests:
2021-09-07 15:38:08 +02:00
* `--no-class_inherits_from_params_class-check`:relevant only to non-supported outdated puppet versions
2017-08-03 12:01:32 +01:00
* `--no-variable_scope-check`: not applicable as we are inheriting parameters from params class. the lint check does not distinguish between facts and inherited parameters.
* `--no-80chars-check`: it is not always possible to stay within 80 characters, although typically only occurring on the parameter vault `params.pp`.
* `--no-arrow_alignment-check`: this check leads to actually not having am easily readable arrow alignment, as this checks `per block`, not per class.
* Puppet Parser
* ERB Template Parser
2021-09-07 15:38:08 +02:00
* Test for unwanted UTF8 files in the Puppet code (see tests/UTF_Files)
* Markdown-lint
* Spellcheck
* Sonar Quality Gate
## Contact Us
2017-08-03 12:01:32 +01:00
[contact Us](https://confdroid.com/contact/)
2021-09-07 15:38:08 +02:00
## Disclaimer
2017-08-03 12:01:32 +01:00
ConfDroid as entity is entirely independent from Puppet. We provide custom configuration modules, written for specific purposes and specific environments.
The modules are tested and supported only as documented, and require testing in designated environments (i.e. lab or development environments) for parameter tuning etc. before deploying into production environments.