Re: [Puppet Users] String/Float comparison - Puppet and Facter

2015-08-04 Thread Mike Reed
Thanks you Martin, that is exactly what I needed. Cheers, m. On Monday, August 3, 2015 at 11:07:09 PM UTC-7, Martin Alfke wrote: > > > On 04 Aug 2015, at 00:39, Mike Reed > > wrote: > > > Hello all, > > > > I've been trying to solve what seems to be a simple problem but have yet > to find t

Re: [Puppet Users] String/Float comparison - Puppet and Facter

2015-08-03 Thread Martin Alfke
On 04 Aug 2015, at 00:39, Mike Reed wrote: > Hello all, > > I've been trying to solve what seems to be a simple problem but have yet to > find the answer. > > I'm trying to do a comparison between the value of a fact and some arbitrary > value: > > if ($::class == 'workstation') and ($::k

[Puppet Users] String/Float comparison - Puppet and Facter

2015-08-03 Thread Mike Reed
Hello all, I've been trying to solve what seems to be a simple problem but have yet to find the answer. I'm trying to do a comparison between the value of a fact and some arbitrary value: if ($::class == 'workstation') and ($::kernelmajversion <= '3.11') { notify {"My Kernel version is <