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

29 lines
602 B
Plaintext
Raw Permalink Normal View History

2023-03-27 10:16:22 +00:00
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