]> 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 3748039e7e3c4879e672a9aba9f9c5ccf045a3ba..da394686c7aa97f626c32f63fedf95ecf3df9907 100644 (file)
@@ -1,8 +1,23 @@
 [main]
+<%
+  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
+
 ssldir = <%= @puppet_ssl_path %>
 
+environment = <%= @environment %>
+
 node_terminus = ldap
-certname = <%= @system_hostname %>
+certname = <%= @real_hostname %>
 ldapserver = <%= @ldap_server %>
 ldaptls = true
 ldapbase = <%= @ldap_base %>