voxpupuli/puppet-fail2ban

Support for OracleLinux

Opened this issue · 1 comments

Being a rebuild of RH it's a simple matter of patching config.pp.

--- config.pp.bak	2017-01-17 13:15:40.681058922 -0500
+++ config.pp	2017-01-17 13:16:06.890730918 -0500
@@ -38,7 +38,7 @@
 
   # Operating system specific configuration
   case $::operatingsystem {
-    /^(RedHat|CentOS|Scientific)$/: {
+    /^(RedHat|CentOS|Scientific|OracleLinux)$/: {
       # Not using firewalld by now
       file { '00-firewalld.conf':
         ensure  => 'absent',

Looks like the codename fact is not present in the oracle code which means you have to manually specify the template.

fail2ban::config_file_template: "fail2ban/Maipo/etc/fail2ban/jail.conf.erb"