diff options
Diffstat (limited to 'modules/base_installation/templates/puppet')
-rw-r--r-- | modules/base_installation/templates/puppet/puppet.conf.erb | 5 | ||||
-rw-r--r-- | modules/base_installation/templates/puppet/xmpp.yaml.erb | 11 |
2 files changed, 16 insertions, 0 deletions
diff --git a/modules/base_installation/templates/puppet/puppet.conf.erb b/modules/base_installation/templates/puppet/puppet.conf.erb index 24e67c8..37eba8e 100644 --- a/modules/base_installation/templates/puppet/puppet.conf.erb +++ b/modules/base_installation/templates/puppet/puppet.conf.erb | |||
@@ -1,4 +1,9 @@ | |||
1 | [main] | 1 | [main] |
2 | <% if @xmpp.count > 0 %> | ||
3 | reports = store,xmpp | ||
4 | <% else %> | ||
5 | reports = store | ||
6 | <% end %> | ||
2 | ssldir = <%= @puppet_ssl_path %> | 7 | ssldir = <%= @puppet_ssl_path %> |
3 | 8 | ||
4 | environment = <%= @environment %> | 9 | environment = <%= @environment %> |
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 @@ | |||
1 | :xmpp_password: "<%= @xmpp["password"] %>" | ||
2 | :xmpp_jid: "<%= @xmpp["jid"] %>/<%= @real_hostname %>" | ||
3 | :xmpp_target: "<%= @xmpp["target"] %>" | ||
4 | <% if @xmpp["statuses"].is_a?(String) %> | ||
5 | :xmpp_statuses: "<%= @xmpp["statuses"] %>" | ||
6 | <% else %> | ||
7 | :xmpp_statuses: | ||
8 | <% @xmpp["statuses"].each do |status| %> | ||
9 | - <%= status %> | ||
10 | <% end %> | ||
11 | <% end %> | ||