On 10/26/2012 5:21 PM, Michael Stahnke wrote:
On Fri, Oct 26, 2012 at 10:36 AM, Ramin K <ramin-l...@badapple.net> wrote:

   $file = $::operatingsystem ? {
     /(?i:oel|oraclelinux)/ => '/some/file',
     /(?i:debian|ubuntu)/   => '/some/other/file',
     default                => '/file',
   }

I recommend using $::osfamily which will return RedHat.

Agreed, but you'll end up wrapping the whole thing in a facterversion case statement due to the number of facter 1.5.x installs which don't have osfamily. :-( Had to deal with this case when publishing a Forge module last week.

PSA: everyone upgrade to facter 1.6 already!

Ramin

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to