Hello

Putting the os specifics into a subclass would make locating it easy.

Moving the what is supported into hiera would make that site wide and
clearer

Each os subclass could lookup and see if it is supported and if not fail

Neil
On 24 Oct 2013 11:13, "DEGREMONT Aurelien" <[email protected]>
wrote:

> 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?
>
>
> Aurélien
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to 
> puppet-users+unsubscribe@**googlegroups.com<puppet-users%[email protected]>
> .
> To post to this group, send email to [email protected].
> Visit this group at 
> http://groups.google.com/**group/puppet-users<http://groups.google.com/group/puppet-users>
> .
> For more options, visit 
> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to