]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blobdiff - modules/base_installation/templates/puppet/xmpp.yaml.erb
Add multiple targets for xmpp notification
[perso/Immae/Projets/Puppet.git] / modules / base_installation / templates / puppet / xmpp.yaml.erb
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 %>