File tree Expand file tree Collapse file tree 4 files changed +45
-1
lines changed Expand file tree Collapse file tree 4 files changed +45
-1
lines changed Original file line number Diff line number Diff line change 189
189
#
190
190
# [*via*]
191
191
# String. String used in the Via header.
192
+ # Depreciated, to be removed in Repose 9.0.0.0
192
193
# Defaults to <tt>undef</tt>
193
194
#
195
+ # [*via_header*]
196
+ # String. String used in the Via header.
197
+ # Requires Repose version 8.4.1.0 or higher
198
+ # Defaults to <tt>undef</tt>
199
+ #
200
+ # [*repose_version*]
201
+ # String. string (true or false) to define if the version is displayed in
202
+ # the Via header defaults to true to maintain default behavior if undefined.
203
+ # Requires Repose version 8.4.1.0 or higher
204
+ # Defaults to <tt>true</tt>
205
+ #
194
206
# [*log_herp_flume*]
195
207
# Enable herp filter publishing to flume.
196
208
# Defaults to <tt>false</tt>
311
323
$syslog_port = $repose::params::syslog_port,
312
324
$syslog_protocol = $repose::params::syslog_protocol,
313
325
$via = undef ,
326
+ $via_header = undef ,
314
327
$flume_host = $repose::params::flume_host,
315
328
$flume_port = $repose::params::flume_port,
316
329
# BELOW ARE DEPRECATED
320
333
$connection_timeout = undef ,
321
334
$read_timeout = undef ,
322
335
$proxy_thread_pool = undef ,
336
+ $repose_version = ' true' ,
323
337
) inherits repose::params {
324
338
325
339
# ## Validate parameters
Original file line number Diff line number Diff line change 2
2
%define base_name repose
3
3
4
4
Name: puppet-module-%{user }-%{base_name }
5
- Version: 2.8 .0
5
+ Version: 2.9 .0
6
6
Release: 1
7
7
BuildArch: noarch
8
8
Summary: Puppet module to configure %{base_name }
@@ -30,6 +30,8 @@ cp -pr * %{buildroot}%{module_dir}/
30
30
%{module_dir }
31
31
32
32
%changelog
33
+ * Mon Dec 17 2018 Josh Bell <josh.bell@rackspace.com> - 2.9.0-1
34
+ - Add via_header and repose_version options to container filter
33
35
* Mon May 12 2018 Josh Bell <josh.bell@rackspace.com> - 2.8.0-1
34
36
- Add ssl protocol and tls renegotiation options to container filter
35
37
* Mon Apr 02 2018 Dimitry Ushakov <dimitry.ushakov@rackspace.com> - 2.7.0-1
Original file line number Diff line number Diff line change 68
68
let ( :params ) { {
69
69
:app_name => 'app' ,
70
70
:via => 'my app' ,
71
+ :repose_version => 'true' ,
71
72
:deployment_directory => '/deployment_dir' ,
72
73
:deployment_directory_auto_clean => 'false' ,
73
74
:artifact_directory => '/artifact_dir' ,
97
98
with_content ( /http-port="10000"/ ) .
98
99
with_content ( /https-port="10001"/ ) .
99
100
with_content ( /via="my app"/ ) .
101
+ with_content ( /repose-version="true"/ ) .
100
102
with_content ( /content-body-read-limit="10240000"/ ) .
101
103
with_content ( /connection-timeout="40000"/ ) .
102
104
with_content ( /read-timeout="1000"/ ) .
397
399
}
398
400
end
399
401
402
+ context 'define via_header option' do
403
+ let ( :params ) { {
404
+ :app_name => 'app' ,
405
+ :via_header => 'Potato'
406
+ } }
407
+ it {
408
+ should contain_file ( '/etc/repose/container.cfg.xml' ) .
409
+ with_content ( /via-header="Potato"/ )
410
+ }
411
+ end
412
+
413
+ context 'define repose_version as false' do
414
+ let ( :params ) { {
415
+ :app_name => 'app' ,
416
+ :repose_version => 'false'
417
+ } }
418
+ it {
419
+ should contain_file ( '/etc/repose/container.cfg.xml' ) .
420
+ with_content ( /repose-version="false"/ )
421
+ }
422
+ end
423
+
400
424
context 'with defaults with old namespace' do
401
425
let :pre_condition do
402
426
"class { 'repose': cfg_new_namespace => false }"
Original file line number Diff line number Diff line change 12
12
<%- if @via -%>
13
13
via ="<%= @via %> "
14
14
<%- end -%>
15
+ <%- if @via_header -%>
16
+ via-header ="<%= @via_header %> "
17
+ <%- end -%>
15
18
<%- if @content_body_read_limit -%>
16
19
content-body-read-limit ="<%= @content_body_read_limit %> "
17
20
<%- end -%>
30
33
<%- if @jmx_reset_time -%>
31
34
jmx-reset-time ="<%= @jmx_reset_time -%> "
32
35
<%- end -%>
36
+ repose-version ="<%= @repose_version %> "
33
37
>
34
38
35
39
< deployment-directory auto-clean ="<%= @deployment_directory_auto_clean %> "> <%= @deployment_directory %> </ deployment-directory >
You can’t perform that action at this time.
0 commit comments