Hi James,

Thanks very much - this worked. As a side effect, I learned a little about how ruby works, too. I'd just like to add that the puppet-users list is one of the more friendly and helpful lists I subscribe to :)

Cheers,
Jonathan


On 07/06/2011 04:47 PM, James Fryman wrote:
Hi Jonathan.

You should be able to use a similar syntax as illustrated below. For instance…

<% if scope.lookupvar('dhcp::includernw') == 1 %>  include 
"/etc/dhcp/dhcpd.rnw";<% end %>

<% is a marker for ruby code, whereas<%= is actually a ruby expression that 
outputs the result of a value or expression.

Hope that helps!

-James


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