]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blame - 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
CommitLineData
cdbbfd47
IB
1:xmpp_password: "<%= @xmpp["password"] %>"
2:xmpp_jid: "<%= @xmpp["jid"] %>/<%= @real_hostname %>"
39d27c31
IB
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 %>
cdbbfd47
IB
11<% if @xmpp["statuses"].is_a?(String) %>
12:xmpp_statuses: "<%= @xmpp["statuses"] %>"
13<% else %>
14:xmpp_statuses:
15<% @xmpp["statuses"].each do |status| %>
16 - <%= status %>
17<% end %>
18<% end %>