diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-03-27 13:06:36 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-03-27 13:06:36 +0100 |
commit | 39d27c310d87131efd2e01e0c407042a9db36f5b (patch) | |
tree | 12114c44b831aff7e3ff41ee7bbc07f99a625832 /modules | |
parent | 5ed56d0d116073dccd2efe3b1139b486bdcb873b (diff) | |
download | Puppet-39d27c310d87131efd2e01e0c407042a9db36f5b.tar.gz Puppet-39d27c310d87131efd2e01e0c407042a9db36f5b.tar.zst Puppet-39d27c310d87131efd2e01e0c407042a9db36f5b.zip |
Add multiple targets for xmpp notification
Diffstat (limited to 'modules')
-rw-r--r-- | modules/base_installation/templates/puppet/xmpp.yaml.erb | 9 |
1 files changed, 8 insertions, 1 deletions
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 %> |