I had a syntax error indeed, a missing ')'... just not in the line I
was looking at.
Can I have a block of ruby code at the beginning of my erb file, where
I would prepare all the out of scope variables, put them into local
name space, so as to simplify the rest of the template?
something like:
<%
hostname = scope.lookupvar('::hostname')
sandbox_servers = scope.lookupvar('::oracle_rac_sandbox_servers')
other_servers = scope.lookupvar('some_module::some_servers')
....
%>
Mohamed.
On Tue, Oct 25, 2011 at 9:38 PM, Mohamed Lrhazi <[email protected]> wrote:
> I am trying to convert this:
>
> <% if oracle_rac_sandbox_servers.include?(hostname) -%>
>
> Into a format valid for the 2.8 version.... I try:
>
> <% if
> scope.lookupvar('::oracle_rac_sandbox_servers').include?(scope.lookupvar('::hostname'))
> -%>
>
> but I get syntax error, unexpected tIDENTIFIER, expecting ')'
>
> What am I doing wrong?
>
> Thanks a lot,
> Mohamed.
>
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.