On 20/05/15 09:04 AM, Björn wrote: > I tried it with regsubst, but without success: > | > <%ip_xforward.each do|name|-%><%="\t\tSetEnvIF X-Forwarded-For > ^(regsubst(#{name}, '\.','\\.')) AllowIP\n"%><%end-%> > |
maybe you need to call the function outside of the string. e.g.: <%= "\t\tSetEnvIf X-Forwarded-For ^(" + regsubst(name, '\.','\\.') + ") AllowIP\n"%> -- Gabriel Filion -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/555EF225.6020401%40lelutin.ca. For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: OpenPGP digital signature