diff --git a/kitchen.yml b/kitchen.yml index 5dfa5c2..01836d1 100644 --- a/kitchen.yml +++ b/kitchen.yml @@ -182,7 +182,7 @@ suites: base: '*': - misc.fake_log_files - - fail2ban + - fail2ban.ng pillars: top.sls: base: diff --git a/pillar.example b/pillar.example index 79fec9d..d5886b2 100644 --- a/pillar.example +++ b/pillar.example @@ -44,14 +44,16 @@ fail2ban: # ng: lookup: - prefix: '/opt' - package: 'fail2ban-new-package' + loglevel: ERROR + bantime: 600 + maxretry: 3 + backend: auto # fail2ban.local config: - # FTP-style - source_path: salt://path-to-fail2ban-file + # # FTP-style + # source_path: salt://path-to-fail2ban-file # Template-style loglevel: ERROR @@ -60,8 +62,8 @@ fail2ban: # jail.local jails: - # FTP-style - source_path: salt://path-to-jail-file + # # FTP-style + # source_path: salt://path-to-jail-file # Template-style DEFAULT: @@ -95,10 +97,12 @@ fail2ban: actionban: csf -d Added by Fail2Ban for actionunban: csf -dr - # FTP-style - test-action: - config: - source_path: salt://path-to-action-file + # yamllint disable rule:comments-indentation + # # FTP-style + # test-action: + # config: + # source_path: salt://path-to-action-file + # yamllint enable rule:comments-indentation # filter.d filters: @@ -112,7 +116,9 @@ fail2ban: Definition: failregex: .*(GET|POST).*(\.php|\.asp|\.exe|\.pl|\.cgi|\.scgi).* - # FTP-style - test-filter: - config: - source_path: salt://path-to-filter-file + # yamllint disable rule:comments-indentation + # # FTP-style + # test-filter: + # config: + # source_path: salt://path-to-filter-file + # yamllint enable rule:comments-indentation