]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blobdiff - modules/base_installation/templates/puppet/xmpp.yaml.erb
XMPP notification
[perso/Immae/Projets/Puppet.git] / modules / base_installation / templates / puppet / xmpp.yaml.erb
diff --git a/modules/base_installation/templates/puppet/xmpp.yaml.erb b/modules/base_installation/templates/puppet/xmpp.yaml.erb
new file mode 100644 (file)
index 0000000..572f472
--- /dev/null
@@ -0,0 +1,11 @@
+:xmpp_password: "<%= @xmpp["password"] %>"
+:xmpp_jid: "<%= @xmpp["jid"] %>/<%= @real_hostname %>"
+:xmpp_target: "<%= @xmpp["target"] %>"
+<% if @xmpp["statuses"].is_a?(String) %>
+:xmpp_statuses: "<%= @xmpp["statuses"] %>"
+<% else %>
+:xmpp_statuses:
+<% @xmpp["statuses"].each do |status| %>
+  - <%= status %>
+<% end %>
+<% end %>