This repository was archived by the owner on Aug 29, 2018. It is now read-only.
forked from mojolingo/puppet-openshift
-
Notifications
You must be signed in to change notification settings - Fork 125
Expand file tree
/
Copy pathmcollective-client.cfg.erb
More file actions
60 lines (55 loc) · 3.25 KB
/
mcollective-client.cfg.erb
File metadata and controls
60 lines (55 loc) · 3.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Managed by puppet - module openshift-openshift_origin
main_collective = mcollective
collectives = mcollective
libdir = <%= scope.lookupvar('::openshift_origin::params::ruby_scl_path_prefix') %>/usr/libexec/mcollective
<% if scope.lookupvar('::openshift_origin::ose_version') != "" -%>
# logger_type = file cannot be set for OpenShift Enterprise
# # https://bugzilla.redhat.com/show_bug.cgi?id=963332
logger_type = console
loglevel = warn
<% else -%>
logfile = /var/log/openshift/broker/<%= scope.lookupvar('::openshift_origin::params::ruby_scl_prefix') %>mcollective-client.log
loglevel = debug
<% end -%>
direct_addressing = 0
# Plugins
securityprovider = psk
plugin.psk = unset
connector = activemq
plugin.activemq.pool.size = <%= @pool_size %>
<% if scope.lookupvar('::openshift_origin::msgserver_cluster') -%>
<% @cluster_members.each_with_index do |cluster_member, index| -%>
plugin.activemq.pool.<%= index + 1%>.host = <%= cluster_member %>
plugin.activemq.pool.<%= index + 1%>.user = <%= scope.lookupvar('::openshift_origin::mcollective_user') %>
plugin.activemq.pool.<%= index + 1%>.password = <%= scope.lookupvar('::openshift_origin::mcollective_password') %>
<% if (scope.lookupvar('::openshift_origin::msgserver_tls_enabled') == 'enabled' and @tls_certs_provided == true) or scope.lookupvar('::openshift_origin::msgserver_tls_enabled') == 'strict' -%>
plugin.activemq.pool.<%= index + 1%>.port = 61614
plugin.activemq.pool.<%= index + 1%>.ssl = true
plugin.activemq.pool.<%= index + 1%>.ssl.ca = <%= scope.lookupvar('::openshift_origin::params::ruby_scl_path_prefix') %>/etc/mcollective/certs/ca.pem
plugin.activemq.pool.<%= index + 1%>.ssl.key = <%= scope.lookupvar('::openshift_origin::params::ruby_scl_path_prefix') %>/etc/mcollective/certs/key.pem
plugin.activemq.pool.<%= index + 1%>.ssl.cert = <%= scope.lookupvar('::openshift_origin::params::ruby_scl_path_prefix') %>/etc/mcollective/certs/cert.pem
<% else -%>
plugin.activemq.pool.<%= index + 1%>.port = 61613
<% end -%>
<% end %>
<% else -%>
plugin.activemq.pool.1.host = <%= scope.lookupvar('::openshift_origin::msgserver_fqdn') %>
plugin.activemq.pool.1.user = <%= scope.lookupvar('::openshift_origin::mcollective_user') %>
plugin.activemq.pool.1.password = <%= scope.lookupvar('::openshift_origin::mcollective_password') %>
<% if (scope.lookupvar('::openshift_origin::msgserver_tls_enabled') == 'enabled' and @tls_certs_provided == true) or scope.lookupvar('::openshift_origin::msgserver_tls_enabled') == 'strict' -%>
plugin.activemq.pool.1.port = 61614
plugin.activemq.pool.1.ssl = true
plugin.activemq.pool.1.ssl.ca = <%= scope.lookupvar('::openshift_origin::params::ruby_scl_path_prefix') %>/etc/mcollective/certs/ca.pem
plugin.activemq.pool.1.ssl.key = <%= scope.lookupvar('::openshift_origin::params::ruby_scl_path_prefix') %>/etc/mcollective/certs/key.pem
plugin.activemq.pool.1.ssl.cert = <%= scope.lookupvar('::openshift_origin::params::ruby_scl_path_prefix') %>/etc/mcollective/certs/cert.pem
<% else -%>
plugin.activemq.pool.1.port = 61613
<% end -%>
<% end -%>
<% if scope.lookupvar('::openshift_origin::ose_version') != "" %>
plugin.activemq.initial_reconnect_delay = 0.1
plugin.activemq.max_reconnect_attempts = 6
plugin.activemq.heartbeat_interval = 30
plugin.activemq.max_hbread_fails = 2
plugin.activemq.max_hbrlck_fails = 2
<% end %>