File tree Expand file tree Collapse file tree 5 files changed +25
-4
lines changed Expand file tree Collapse file tree 5 files changed +25
-4
lines changed Original file line number Diff line number Diff line change 1
1
name 'citops-repose'
2
- version '2.7 .0'
2
+ version '2.10 .0'
3
3
description "Repose is an api middleware that provides authentication,
4
4
filtering, ratelimitting and several other features, this deploys it."
5
5
project_page 'https://github.com/rackerlabs/puppet-repose'
Original file line number Diff line number Diff line change 101
101
# server.
102
102
# Defaults to <tt>local0</tt>
103
103
#
104
+ # [*log_file_perm*]
105
+ # String. This option can be used to provide world read access on repose logs.
106
+ # if value='private' OR [not equals 'public'] will follow the os umap
107
+ # permission of repose user.
108
+ # if value='public' will provide world read access on log files.
109
+ # Defaults to <tt>private</tt>
110
+ #
104
111
# [*log_use_log4j2*]
105
112
# Boolean. This option will enable the use of log4j2 xml configuration files.
106
113
# This will override <tt>logging_configuration</tt> to use <tt>log4j2.xml</tt>.
308
315
$log_local_size = $repose::params::log_local_size,
309
316
$log_local_rotation_count = $repose::params::log_local_rotation_count,
310
317
$log_repose_facility = $repose::params::log_repose_facility,
318
+ $log_file_perm = $repose::params::log_file_perm,
311
319
$log_use_log4j2 = false ,
312
320
$logging_configuration = $repose::params::logging_configuration,
313
321
$ssl_enabled = false ,
Original file line number Diff line number Diff line change 243
243
244
244
# # use new namespace urls in configuration files
245
245
$cfg_new_namespace = false
246
+
247
+ # # default log file permissions
248
+ $log_file_perm = ' private'
246
249
}
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.9 .0
5
+ Version: 2.10 .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
+ * Tue Jun 18 2019 Lokesh Belwal <Lokesh.Belwal@rackspace.com> - 2.10.0-1
34
+ - Add log_file_perm param to provide world read access on logs if set to 'public'
33
35
* Mon Dec 17 2018 Josh Bell <josh.bell@rackspace.com> - 2.9.0-1
34
36
- Add via_header and repose_version options to container filter
35
37
* Mon May 12 2018 Josh Bell <josh.bell@rackspace.com> - 2.8.0-1
Original file line number Diff line number Diff line change 26
26
<%- elsif @log_local_policy == 'size' -%>
27
27
< RollingFile name ="defaultFile "
28
28
filename ="<%= @log_dir -%> /<%= @app_name -%> .log "
29
- filePattern ="<%= @log_dir -%> /<%= @app_name -%> .log.%i ">
29
+ filePattern ="<%= @log_dir -%> /<%= @app_name -%> .log.%i "
30
+ <%- if @log_file_perm == 'public' -%>
31
+ filePermissions ="rw-r--r-- "
32
+ <%- end -%>
33
+ >
30
34
< PatternLayout >
31
35
< Pattern > %d{yyyy-MM-dd HH:mm:ss} %-4r [%t] %-5p %c %x - %m%n</ Pattern >
32
36
</ PatternLayout >
93
97
<%- elsif @log_local_policy == 'size' -%>
94
98
< RollingFile name ="httpLocal "
95
99
filename ="<%= @log_dir -%> /<%= @log_access_local_name -%> .log "
96
- filePattern ="<%= @log_dir -%> /<%= @log_access_local_name -%> .log.%i ">
100
+ filePattern ="<%= @log_dir -%> /<%= @log_access_local_name -%> .log.%i "
101
+ <%- if @log_file_perm == 'public' -%>
102
+ filePermissions ="rw-r--r-- "
103
+ <%- end -%>
104
+ >
97
105
< PatternLayout >
98
106
< Pattern > %m%n</ Pattern >
99
107
</ PatternLayout >
You can’t perform that action at this time.
0 commit comments