On Jan 24, 7:14 am, "ollies...@googlemail.com"
<paul.seym...@barcap.com> wrote:
> On Jan 23, 9:07 pm, Guy Matz <gm...@matz.org> wrote:
>
> > Is your issue resolved?  It looks like you don't have the correct erb
> > syntax in your loop
>
> > *<%=* scope.lookupvar('resolver::params::resolvers').split(/\s+/).each
>
> > I think should be
>
> > *<%* scope.lookupvar('resolver::params::resolvers').split(/\s+/).each
>
> Thanks Gary, the split now works. Although I get an line break.
>
>  # more /etc/resolv.conf
> # File managed by puppet
> domain example.com
> searchpath example.com example2.com
>
> nameserver 10.10.10.10
>
> nameserver 11.11.11.11

No worries sorted that with:-
<% scope.lookupvar('resolver::params::resolvers').split(/\s+/).each do
| ns | -%>
nameserver <%= ns %>
<% end -%>

Thanks to all for the help.

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