]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blobdiff - modules/base_installation/templates/puppet/puppet.conf.erb
Add slack notification for puppet
[perso/Immae/Projets/Puppet.git] / modules / base_installation / templates / puppet / puppet.conf.erb
index 03b33bba119d8fedbf9e3c4947648d486dae3708..da394686c7aa97f626c32f63fedf95ecf3df9907 100644 (file)
@@ -1,9 +1,14 @@
 [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