This repository has been archived on 2023-06-27. You can view files and clone it, but cannot push or open issues or pull requests.
salt-states_old/fail2ban/install.sls
2023-03-27 12:16:22 +02:00

29 lines
602 B
Plaintext

Install fail2ban packages:
pkg.installed:
- pkgs:
- fail2ban
configure fail2ban.local:
file.managed:
- name: /etc/fail2ban/fail2ban.local
- source: salt://fail2ban/files/fail2ban.local
- user: root
- group: root
- mode: "0644"
configure jail.local:
file.managed:
- name: /etc/fail2ban/jail.local
- source: salt://fail2ban/files/jail.local
- user: root
- group: root
- mode: "0644"
start fail2ban:
service.running:
- name: fail2ban
- enable: true
- watch:
- file: configure fail2ban.local
- file: configure jail.local