aboutsummaryrefslogtreecommitdiff
path: root/modules/base_installation/templates
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-03-22 11:50:12 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-03-22 12:48:17 +0100
commitcdbbfd477be98497ca89233ca8b8b1c1e27e184b (patch)
treefbd6fb8d4d4cd337a4ffbec24d7f0530b5596de8 /modules/base_installation/templates
parent5a1aab82ab45c14db40026bb7b1f19d0ee8a3cb3 (diff)
downloadPuppet-cdbbfd477be98497ca89233ca8b8b1c1e27e184b.tar.gz
Puppet-cdbbfd477be98497ca89233ca8b8b1c1e27e184b.tar.zst
Puppet-cdbbfd477be98497ca89233ca8b8b1c1e27e184b.zip
XMPP notification
Diffstat (limited to 'modules/base_installation/templates')
-rw-r--r--modules/base_installation/templates/puppet/puppet.conf.erb5
-rw-r--r--modules/base_installation/templates/puppet/xmpp.yaml.erb11
2 files changed, 16 insertions, 0 deletions
diff --git a/modules/base_installation/templates/puppet/puppet.conf.erb b/modules/base_installation/templates/puppet/puppet.conf.erb
index 24e67c8..37eba8e 100644
--- a/modules/base_installation/templates/puppet/puppet.conf.erb
+++ b/modules/base_installation/templates/puppet/puppet.conf.erb
@@ -1,4 +1,9 @@
1[main] 1[main]
2<% if @xmpp.count > 0 %>
3reports = store,xmpp
4<% else %>
5reports = store
6<% end %>
2ssldir = <%= @puppet_ssl_path %> 7ssldir = <%= @puppet_ssl_path %>
3 8
4environment = <%= @environment %> 9environment = <%= @environment %>
diff --git a/modules/base_installation/templates/puppet/xmpp.yaml.erb b/modules/base_installation/templates/puppet/xmpp.yaml.erb
new file mode 100644
index 0000000..572f472
--- /dev/null
+++ b/modules/base_installation/templates/puppet/xmpp.yaml.erb
@@ -0,0 +1,11 @@
1:xmpp_password: "<%= @xmpp["password"] %>"
2:xmpp_jid: "<%= @xmpp["jid"] %>/<%= @real_hostname %>"
3:xmpp_target: "<%= @xmpp["target"] %>"
4<% if @xmpp["statuses"].is_a?(String) %>
5:xmpp_statuses: "<%= @xmpp["statuses"] %>"
6<% else %>
7:xmpp_statuses:
8<% @xmpp["statuses"].each do |status| %>
9 - <%= status %>
10<% end %>
11<% end %>