Thanks all, there should be enough in the replies to get me going :)

Want to use hiera for determining package names etc between major
versions (e.g. sendmail on 5.x, postfix on 6.x)

- will look up based on OS_flavour+ major_release
(Centos-5.json, RHEL-6.json, etc.) and that should get me sorted.

Thanks a lot!

On 8 February 2012 02:37, [email protected] <[email protected]> wrote:
> I use this:
>
> Facter.add("operatingsystemrelease_mv") do
>        setcode do
>                %x{cat /etc/redhat-release |awk \{'print $3'\}|cut -
> c1}.chomp
>        end
> end
>
> On Feb 3, 11:29 am, Ramin K <[email protected]> wrote:
>> You'll need to add the redhat-lsb package to your kickstart system and/
>> or just install it on your current systems. That's the package facter
>> uses to determine the lsb facts.
>>
>> On Feb 3, 8:57 am, Dick Davies <[email protected]> wrote:
>>
>>
>>
>>
>>
>>
>>
>> > Just started a rollout of centos 6.x across our Puppet deployment
>> > (100-odd servers).
>>
>> > what fact would people suggest I use to distinguish 5.x from 6.x
>> > (quite a lot of subsystems are different between major releases)?
>>
>> > lsb* facts don't seem to be present on centos 6 - is this an EPEL bug,
>> > or have they
>> > just been removed in Facter?
>>
>> > Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/puppet-users?hl=en.
>

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

Reply via email to