]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/commitdiff
Add multiple targets for xmpp notification
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Wed, 27 Mar 2019 12:06:36 +0000 (13:06 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Wed, 27 Mar 2019 12:06:36 +0000 (13:06 +0100)
external_modules/xmpp
modules/base_installation/templates/puppet/xmpp.yaml.erb

index d18dd07ffdf6c33942bd0c277cb24aafa513cbd7..97a708139ecd0f2b12bee71a52aebf7f661d48cd 160000 (submodule)
@@ -1 +1 @@
-Subproject commit d18dd07ffdf6c33942bd0c277cb24aafa513cbd7
+Subproject commit 97a708139ecd0f2b12bee71a52aebf7f661d48cd
index 572f4727ffaaf7d2def8834d32ddd3f6eee69bb4..8aca285669c6906d01d52588e9dd9e9fdbf91a94 100644 (file)
@@ -1,6 +1,13 @@
 :xmpp_password: "<%= @xmpp["password"] %>"
 :xmpp_jid: "<%= @xmpp["jid"] %>/<%= @real_hostname %>"
-:xmpp_target: "<%= @xmpp["target"] %>"
+:xmpp_target:
+<% if @xmpp["target"].is_a?(String) %>
+  - "<%= @xmpp["target"] %>"
+<% else %>
+<% @xmpp["target"].each do |target| %>
+  - "<%= target %>"
+<% end %>
+<% end %>
 <% if @xmpp["statuses"].is_a?(String) %>
 :xmpp_statuses: "<%= @xmpp["statuses"] %>"
 <% else %>