[main]
-<% if @xmpp.count > 0 %>
-reports = store,xmpp
-<% else %>
-reports = store
-<% end %>
+<%
+ reports = ["store"]
+ if @xmpp.count > 0
+ reports << "xmpp"
+ end
+ if @slack.count > 0
+ reports << "slack"
+ end
+%>
+reports = <%= reports.join(",") %>
basemodulepath = <%= @puppet_code_path %>/modules:<%= @puppet_code_path %>/external_modules