module dependency best practices ?
I am creating some modules and sometimes I have dependency which I do not like.
Let's take as an example that I have 2 modules:
- ssh module
- Fail2ban module (with a define to setup some rules)
What I want to be able to do is to ensure that IF fail2ban is declared on the node AND IF ssh module is also declared on the node, THEN the ssh fail2ban rules is activated.
I started by setting the fail2ban rule in ssh module (using fail2ban define), but then if fail2ban is not activated on the node, it fails. I ... (more)