Hi,

You could use hiera with osfamily

Regard,

Dominique Arpin


Le 2015-02-10 à 16:18, leam hall 
<leamh...@gmail.com<mailto:leamh...@gmail.com>> a écrit :

We have a mixed environment. I wrote a module that would only do stuff on Red 
Hat family boxes. Under the class definition I put:

  if $::osfamily == 'RedHat' {

and did all the package and file definitions under that. Is there a better or 
cleaner way to do this?

Leam


--
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+unsubscr...@googlegroups.com<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/d76f28b2-c2cf-4f90-91bf-229da4698df4%40googlegroups.com<https://groups.google.com/d/msgid/puppet-users/d76f28b2-c2cf-4f90-91bf-229da4698df4%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

Mise en garde concernant la confidentialité : Le présent message, comprenant 
tout fichier qui y est joint, est envoyé à l'intention exclusive de son 
destinataire; il est de nature confidentielle et peut constituer une 
information protégée par le secret professionnel. Si vous n'êtes pas le 
destinataire, nous vous avisons que toute impression, copie, distribution ou 
autre utilisation de ce message est strictement interdite. Si vous avez reçu ce 
courriel par erreur, veuillez en aviser immédiatement l'expéditeur par retour 
de courriel et supprimer le courriel. Merci!

Confidentiality Warning: This message, including any attachment, is sent only 
for the use of the intended recipient; it is confidential and may constitute 
privileged information. If you are not the intended recipient, you are hereby 
notified that any printing, copying, distribution or other use of this message 
is strictly prohibited. If you have received this email in error, please notify 
the sender immediately by return email, and delete it. Thank you!

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/D492917F-894E-42E5-A94B-375AD00BBC2D%40casino.qc.ca.
For more options, visit https://groups.google.com/d/optout.

Reply via email to