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:

<%if foo.to_i > 4 %> Have a foursy day <% end%>

That should work for you.

-- 
Ben Hughes || http://www.puppetlabs.com/

-- 
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