aboutsummaryrefslogtreecommitdiff
path: root/modules/base_installation/templates/puppet/puppet.conf.erb
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-05-11 12:54:22 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-05-11 12:54:43 +0200
commitc8511b2019b44360887d33a9626ec14c81736aee (patch)
tree68826f98d5e040c34dbc249570d306664020de5c /modules/base_installation/templates/puppet/puppet.conf.erb
parent5a5b32d87d06cfc6dce82cf83cb023ed2764fc45 (diff)
downloadPuppet-c8511b2019b44360887d33a9626ec14c81736aee.tar.gz
Puppet-c8511b2019b44360887d33a9626ec14c81736aee.tar.zst
Puppet-c8511b2019b44360887d33a9626ec14c81736aee.zip
Add slack notification for puppet
Diffstat (limited to 'modules/base_installation/templates/puppet/puppet.conf.erb')
-rw-r--r--modules/base_installation/templates/puppet/puppet.conf.erb15
1 files changed, 10 insertions, 5 deletions
diff --git a/modules/base_installation/templates/puppet/puppet.conf.erb b/modules/base_installation/templates/puppet/puppet.conf.erb
index 03b33bb..da39468 100644
--- a/modules/base_installation/templates/puppet/puppet.conf.erb
+++ b/modules/base_installation/templates/puppet/puppet.conf.erb
@@ -1,9 +1,14 @@
1[main] 1[main]
2<% if @xmpp.count > 0 %> 2<%
3reports = store,xmpp 3 reports = ["store"]
4<% else %> 4 if @xmpp.count > 0
5reports = store 5 reports << "xmpp"
6<% end %> 6 end
7 if @slack.count > 0
8 reports << "slack"
9 end
10%>
11reports = <%= reports.join(",") %>
7 12
8basemodulepath = <%= @puppet_code_path %>/modules:<%= @puppet_code_path %>/external_modules 13basemodulepath = <%= @puppet_code_path %>/modules:<%= @puppet_code_path %>/external_modules
9 14