aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-03-27 13:06:36 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-03-27 13:06:36 +0100
commit39d27c310d87131efd2e01e0c407042a9db36f5b (patch)
tree12114c44b831aff7e3ff41ee7bbc07f99a625832
parent5ed56d0d116073dccd2efe3b1139b486bdcb873b (diff)
downloadPuppet-39d27c310d87131efd2e01e0c407042a9db36f5b.tar.gz
Puppet-39d27c310d87131efd2e01e0c407042a9db36f5b.tar.zst
Puppet-39d27c310d87131efd2e01e0c407042a9db36f5b.zip
Add multiple targets for xmpp notification
m---------external_modules/xmpp0
-rw-r--r--modules/base_installation/templates/puppet/xmpp.yaml.erb9
2 files changed, 8 insertions, 1 deletions
diff --git a/external_modules/xmpp b/external_modules/xmpp
Subproject d18dd07ffdf6c33942bd0c277cb24aafa513cbd Subproject 97a708139ecd0f2b12bee71a52aebf7f661d48c
diff --git a/modules/base_installation/templates/puppet/xmpp.yaml.erb b/modules/base_installation/templates/puppet/xmpp.yaml.erb
index 572f472..8aca285 100644
--- a/modules/base_installation/templates/puppet/xmpp.yaml.erb
+++ b/modules/base_installation/templates/puppet/xmpp.yaml.erb
@@ -1,6 +1,13 @@
1:xmpp_password: "<%= @xmpp["password"] %>" 1:xmpp_password: "<%= @xmpp["password"] %>"
2:xmpp_jid: "<%= @xmpp["jid"] %>/<%= @real_hostname %>" 2:xmpp_jid: "<%= @xmpp["jid"] %>/<%= @real_hostname %>"
3:xmpp_target: "<%= @xmpp["target"] %>" 3:xmpp_target:
4<% if @xmpp["target"].is_a?(String) %>
5 - "<%= @xmpp["target"] %>"
6<% else %>
7<% @xmpp["target"].each do |target| %>
8 - "<%= target %>"
9<% end %>
10<% end %>
4<% if @xmpp["statuses"].is_a?(String) %> 11<% if @xmpp["statuses"].is_a?(String) %>
5:xmpp_statuses: "<%= @xmpp["statuses"] %>" 12:xmpp_statuses: "<%= @xmpp["statuses"] %>"
6<% else %> 13<% else %>