Jo,

I did figure it out, not sure if you saw my last post on this.  Per my last
post I said, "it turns out I was using 'source' instead of 'content' within
my file declaration in my manifest."

So it had nothing to do with the erb file at all.  Regarding the @ symbol,
it was a red herring.  In fact, I have the "<% if @hostname == "foo" %>"
statement in a bunch of different templates in several of my puppet
modules, and that statement works beautifully.


On Tue, Sep 18, 2012 at 7:20 PM, Jo Rhett <jrh...@netconsonance.com> wrote:

>
> On Aug 31, 2012, at 10:40 AM, banjer wrote:
>
> Thanks for the reply KW, but thats not quite what I was asking.  Heres the
> relevant section of the template:
>
>
> *.notice;news.none;cron.none @loghost:514
>
> <% if @hostname == "foo" %>
>   # Provides UDP syslog reception
>   $ModLoad imudp.so
>   $UDPServerRun 514
> <% end %>
>
> So you can see it lives outside of a <%  %> block.
>
>
> Since you didn't seem to get an answer, I think you need to reread the
> above. The problem isn't the loghost line. Your if statement clearly uses a
> @ character before hostname. I suspect that this is your only problem, and
> removing the @ will solve your problem.
>
> --
> Jo Rhett
> Net Consonance : net philanthropy to improve open source and internet
> projects.
>
>
>
>  --
> 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.
>

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