lelutin / puppet-fail2ban

Manage fail2ban and its jails with puppet
GNU General Public License v3.0
8 stars 31 forks source link

pre-defined jails: pass on arguments in bulk to the jail define #29

Closed lelutin closed 6 years ago

lelutin commented 6 years ago

In puppet 4.x, it's possible to pass all parameters from the "current define" to another one. e.g. what some ppl call the "resource wrapper pattern": https://www.devco.net/archives/2016/02/28/the-resource-wrapper-pattern-in-puppet-4.php

Instead of always defining a new list of parameters for each pre-defined jail, we should only manually set default values, and then pass on all other parameters to the "jail" defined type.

this is only possible in puppet 4.x however

lelutin commented 6 years ago

this is really slowly coming. I've started to implement using "data in modules" to replace all of the wrapper-classes. This will be a big API change from this module's 2.x code branch so I want to finish this before releasing 3.0.0 but I've been either too busy or too tired to complete the change.

but it's coming soon, promised!

While working on this, I'm also brushing up on all of the new features in puppet 4.x and 5.x that I'm late in learning about, and specifically I need to figure out more precisely which types will be given to arguments so that the big change with regards to the example jails will be holding together.

stay tuned...

lelutin commented 6 years ago

I finally woke up from my deep winter slumber!

sorry it took so much time, but here it is. I just pushed 3a2b47f which replaces all wrappers for data-in-module structures.

I only have a couple small items to complete before 3.0.0 is released now! The biggest hurdle is now behind.