Il 18/03/2013 17:16, ollies...@googlemail.com ha scritto:
Hello,

If I want to do something like this:-

if $::lsbdistrelease >= 6.3 {
SOMETHING
}

Do I have to convert lsbdistrelease from a string to a number with an
inline template or some such ?

Hi, you can use versioncmp(), it's a builtin function

http://docs.puppetlabs.com/references/latest/function.html#versioncmp



ciao,
--
Alessandro Ogier
Specialista Reti e Sistemi - Area Ricerca
Direzione ICT Gruppo IEO/CCM

Istituto Europeo di Oncologia
Via Serio, 15 - 20139 Milan, Italy
P +39 02 94375269
E alessandro.og...@ieo.eu
W http://www.ieo.it

--
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to