X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fbase_installation%2Ftemplates%2Fpuppet%2Fxmpp.yaml.erb;h=8aca285669c6906d01d52588e9dd9e9fdbf91a94;hb=39d27c310d87131efd2e01e0c407042a9db36f5b;hp=572f4727ffaaf7d2def8834d32ddd3f6eee69bb4;hpb=64b197e6488e1ba1a48d63f365242d50c668ee13;p=perso%2FImmae%2FProjets%2FPuppet.git 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 @@ :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 %>