[Puppet Users] Best practice to manage multi-OS for the same module?

DEGREMONT Aurelien
2013-10-24T10:13:34Z

Hello all,

As said in the subject, I did not find in puppet doc the official
recommendation in how multi-os should be handled in module manifests.

Let''s say I want my module foo having classes that could be used on
Debian, RHEL6 and Fedora 10 to 18.
What would be the recommended way to manage differences between all of
these systems?

I know there is conditionals usable in classes, but is this the
recommended way?

Also, when I decommission" Fedora10" by example, and I do not want to
manage it in all my modules anymore, as this is unneeded complexity, I
need to modify all the "if" statement in all modules to remove
fedora10
special treatments?