Hello,

I am trying to setup a template with data being passed in as a long
string of data which is being returned via extlookup()

i.e. $resolvers = "10.10.10.10 11.11.11.11.12.12.12.12"

The template should split those up and put a nameserver entry per line
in /etc/resolv.conf

I have this in the template now:-
<%= scope.lookupvar('resolver::params::resolvers').split(/\s+/).each
do | ns | %>
nameserver <%= ns %>
<% end -%>

Which is throwing a syntax error. Can't for the life of me work out
whats wrong. Probably not had enough coffee yet.

Any ideas ?

Thanks
Paul

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