Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Refs #19929 - Add wcache-page-size to installer
  • Loading branch information
chris1984 authored and ehelms committed Jun 6, 2017
1 parent 994f0dc commit 5e3bb24
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
3 changes: 3 additions & 0 deletions manifests/init.pp
Expand Up @@ -28,6 +28,8 @@
#
# $max_connections:: Maximum number of connections to allow
#
# $wcache_page_size:: The size (in KB) of the pages in the write page cache
#
# $log_to_syslog:: Log to syslog or not
#
# $interface:: Interface to listen on
Expand Down Expand Up @@ -63,6 +65,7 @@
Array[String] $user_groups = $::qpid::params::user_groups,
Array[String] $server_packages = $::qpid::params::server_packages,
Optional[Integer[1]] $max_connections = $::qpid::params::max_connections,
Optional[Integer[1]] $wcache_page_size = $::qpid::params::wcache_page_size,
) inherits qpid::params {
if $ssl {
assert_type(Boolean, $ssl_require_client_auth)
Expand Down
2 changes: 2 additions & 0 deletions manifests/params.pp
Expand Up @@ -24,6 +24,8 @@

$session_unacked = undef

$wcache_page_size = undef

$user_groups = []

$user = 'qpidd'
Expand Down
17 changes: 17 additions & 0 deletions spec/classes/qpid_config_spec.rb
Expand Up @@ -82,6 +82,23 @@
end
end

context 'with wcache_page_size' do
let :pre_condition do
'class {"qpid":
wcache_page_size => 4,
}'
end

it 'should create configuration file' do
verify_exact_contents(catalogue, '/etc/qpid/qpidd.conf', [
'log-enable=error+',
'log-to-syslog=yes',
'auth=no',
'wcache-page-size=4'
])
end
end

context 'with max-connections' do
let :pre_condition do
'class {"qpid":
Expand Down
3 changes: 3 additions & 0 deletions templates/qpidd.conf.erb
Expand Up @@ -47,3 +47,6 @@ max-connections=<%= scope['qpid::max_connections'] %>
<% unless [nil, :undefined, :undef, ''].include?(scope['qpid::session_unacked']) -%>
session-max-unacked=<%= scope['qpid::session_unacked'] %>
<% end %>
<% unless [nil, :undefined, :undef, ''].include?(scope['qpid::wcache_page_size']) -%>
wcache-page-size=<%= scope['qpid::wcache_page_size'] %>
<% end %>

0 comments on commit 5e3bb24

Please sign in to comment.