Template condition based on variable

13 views
Skip to first unread message

Will S. G.

unread,
Mar 1, 2012, 10:08:09 PM3/1/12
to puppet...@googlegroups.com
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.
Reply all
Reply to author
Forward
0 new messages