Re: [Puppet Users] Integer comparison in Puppet Templates

2011-03-03 Thread Ben Hughes
On Thu, Mar 03, 2011 at 01:26:19PM -0800, Michel wrote: > In this eaxmple the users::four is included in the node. When it > goes to the motd.conf.erb file though it complains that I am trying > to compare a string to an integer. Puppet internally presents that as a string. If you change it to:

[Puppet Users] Integer comparison in Puppet Templates

2011-03-03 Thread Michel
Hello; Is it possible to include integer comparison in Puppet templates? An example node 'testy' { $foo = 5 if ( $foo > 4 ) { include users::four } include files::motd } class files::motd { file { "/etc/motd": content => template("files/motd.conf.erb") } Template mord.conf.erb