From cdbbfd477be98497ca89233ca8b8b1c1e27e184b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Thu, 22 Mar 2018 11:50:12 +0100 Subject: XMPP notification --- modules/base_installation/templates/puppet/xmpp.yaml.erb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 modules/base_installation/templates/puppet/xmpp.yaml.erb (limited to '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 index 0000000..572f472 --- /dev/null +++ b/modules/base_installation/templates/puppet/xmpp.yaml.erb @@ -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 %> -- cgit v1.2.3