Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refs #19929 - Add wcache-page-size to installer #65

Merged
merged 1 commit into from Jun 6, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 %>