Hi, That is a string you are checking in the has_variable not a Boolean. So if you put 'true' or 'false' they both pull the var into existence.
So as far as I recall, you got two options. Try declaring the var like so: $mysqlsrv = true Or you run the template like this: > <% if has_variable?( "mysqlsrv" ) then %> <% if mysqlsrv == 'true' then ... Cheers, Den On 02/03/2012, at 14:16, "Will S. G." <w...@arw.in> wrote: > I have a template for zabbix_agentd.conf.erb that has the following line in > it: > > <% if has_variable?( "mysqlsrv" ) then %> > UserParameter=FromDual.MySQL.check,/usr/local/mysql_performance_monitor/FromDualMySQLagent.pl > /usr/local/mysql_performance_monitor/etc/FromDualMySQLagent.conf <% end %> > > I defined the variable $mysqlsrv = "true" in node.pp. However, it seems the > file is really never updated based on the condition. > > Any suggestions how to troubleshoot this issue? I feel a bit lost. > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/puppet-users/-/DmKKquuBOGkJ. > 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.