[submodule "modules/puppetlabs_concat"]
path = modules/concat
url = https://github.com/puppetlabs/puppetlabs-concat.git
-[submodule "modules/pacman"]
- path = modules/pacman
- url = https://github.com/aboe76/puppet-pacman.git
+[submodule "modules/fail2ban"]
+ path = modules/fail2ban
+ url = git://git.immae.eu/github/lelutin/puppet-fail2ban
order => 15,
include => '/etc/pacman.d/mirrorlist'
}
+
+ ensure_packages(["whois"], { 'install_options' => '--asdeps' })
+ class { 'fail2ban':
+ logtarget => 'SYSLOG',
+ backend => 'systemd'
+ }
+ fail2ban::jail { 'sshd':
+ backend => 'systemd',
+ port => 'ssh',
+ filter => 'sshd',
+ maxretry => 10,
+ bantime => 86400,
+ logpath => '',
+ order => 10
+ }
}