|
13 | 13 | # String. Application name. Required |
14 | 14 | # Defaults to <tt>undef</tt> |
15 | 15 | # |
| 16 | +# [*artifact_directory*] |
| 17 | +# String. |
| 18 | +# Defaults to <tt>/usr/share/repose/filters</tt> |
| 19 | +# |
| 20 | +# [*artifact_directory_check_interval*] |
| 21 | +# Integer. Directory check interval in milliseconds. |
| 22 | +# Defaults to <tt>60000</tt> |
| 23 | +# |
| 24 | +# [*client_request_logging*] |
| 25 | +# Bool. Logs communication between repose and the end service |
| 26 | +# Defaults to <tt>false</tt> |
| 27 | +# |
| 28 | +# [*content_body_read_limit*] |
| 29 | +# Integer. Maximum size ofr request content in bytes |
| 30 | +# Defaults to <tt>undef</tt> |
| 31 | +# |
| 32 | +# [*deployment_directory*] |
| 33 | +# String. A string that points the directory where artifacts are extracted. |
| 34 | +# Defaults to <tt>/var/repose</tt> |
| 35 | +# |
| 36 | +# [*deployment_directory_auto_clean*] |
| 37 | +# Boolean. Set to true to clean up undeployed resources. |
| 38 | +# Defaults to <tt>true</tt> |
| 39 | +# |
| 40 | +# [*jmx_reset_time*] |
| 41 | +# Integer. The number of seconds the JMX reporting service keeps |
| 42 | +# data. The data will be reset after this amount of time. |
| 43 | +# Defaults to <tt>undef</tt> |
| 44 | +# |
| 45 | +# [*log_access_facility*] |
| 46 | +# String. The facility to use when sending access logs via syslog. |
| 47 | +# Defaults to <tt>local1</tt> |
| 48 | +# |
| 49 | +# [*log_access_local*] |
| 50 | +# Boolean. Should repose access logs be logged locally. Uses the log_local_* |
| 51 | +# Settings to determine retention policy. |
| 52 | +# Defaults to <tt>true</tt> |
| 53 | +# |
| 54 | +# [*log_access_local_name*] |
| 55 | +# String. The name of the local log file to be created for the local http |
| 56 | +# access logs. The name is appended with .log. |
| 57 | +# Defaults to <tt>http_repose</tt> |
| 58 | +# |
| 59 | +# [*log_access_syslog*] |
| 60 | +# Boolean. Should repose access logs be to a syslog. Uses the syslog_* |
| 61 | +# Settings to determine where to send the logs. You must also specify |
| 62 | +# a syslog_server in order for this to be enabled. |
| 63 | +# Defaults to <tt>true</tt> |
| 64 | +# |
16 | 65 | # [*log_dir*] |
17 | 66 | # String. Log file directory |
18 | 67 | # Defaults to <tt>/var/log/repose</tt> |
|
21 | 70 | # String. Default log level |
22 | 71 | # Defaults to <tt>WARN</tt> |
23 | 72 | # |
| 73 | +# [*log_local_policy*] |
| 74 | +# String. Log policy for repose.log and http_access.log. Default setting uses |
| 75 | +# the log4j DailyRollingFileAppender with a suffix of .yyyy-MM-dd. Can be one |
| 76 | +# of <tt>date</tt>,<tt>size</tt>,<tt>undef</tt>. If set to size, the logs |
| 77 | +# are rotated based on size and use the <tt>log_local_size</tt> and |
| 78 | +# <tt>log_local_rotation_count</tt> for determining retention. If set to |
| 79 | +# <tt>undef</tt> or anything other than <tt>date</tt> or <tt>size</tt> |
| 80 | +# the NullAppender is used which means it won't log. |
| 81 | +# Defaults to <tt>date</tt> |
| 82 | +# |
| 83 | +# [*log_local_size*] |
| 84 | +# String. The max file size for the log4j RollingFileAppender. |
| 85 | +# Defaults to <tt>100M</tt> |
| 86 | +# |
| 87 | +# [*log_local_rotation_count*] |
| 88 | +# Integer. The number of backup files to keeo for the log4j RollingFileAppender |
| 89 | +# Defaults to <tt>4</tt> |
| 90 | +# |
| 91 | +# [*log_repose_facility*] |
| 92 | +# String. The logging facility to send repose logs to when sending to a syslog |
| 93 | +# server. |
| 94 | +# Defaults to <tt>local0</tt> |
| 95 | +# |
| 96 | +# [*logging_configuration*] |
| 97 | +# String. The name of the logging configuration file. |
| 98 | +# Defaults to <tt>log4j.properties</tt> |
| 99 | +# |
24 | 100 | # [*syslog_server*] |
25 | 101 | # String. If this host is provided, the repose log4j configuration will ship |
26 | 102 | # the repose.log to syslog (facility LOCAL0) and a http logger is created |
|
35 | 111 | # String. The protocol to send syslog traffic as. Should be 'tcp' or 'udp'. |
36 | 112 | # Defaults to <tt>udp</tt> |
37 | 113 | # |
38 | | -# [*via*] |
39 | | -# String. String used in the Via header. |
40 | | -# Defaults to <tt>undef</tt> |
41 | | -# |
42 | | -# [*deployment_directory*] |
43 | | -# String. A string that points the directory where artifacts are extracted. |
44 | | -# Defaults to <tt>/var/repose</tt> |
45 | | -# |
46 | | -# [*deployment_directory_auto_clean*] |
47 | | -# Boolean. Set to true to clean up undeployed resources. |
48 | | -# Defaults to <tt>true</tt> |
49 | | -# |
50 | | -# [*artifact_directory*] |
51 | | -# String. |
52 | | -# Defaults to <tt>/usr/share/repose/filters</tt> |
53 | | -# |
54 | | -# [*artifact_directory_check_interval*] |
55 | | -# Integer. Directory check interval in milliseconds. |
56 | | -# Defaults to <tt>60000</tt> |
57 | | -# |
58 | | -# [*logging_configuration*] |
59 | | -# String. The name of the logging configuration file. |
60 | | -# Defaults to <tt>log4j.properties</tt> |
61 | | -# |
62 | 114 | # [*ssl_enabled*] |
63 | 115 | # Boolean. Enable ssl configuration for the container. |
64 | 116 | # Defaults to <tt>false</tt> |
|
75 | 127 | # String. The password for the particular application key in the keystore. |
76 | 128 | # Defaults to <tt>undef</tt> |
77 | 129 | # |
78 | | -# [*content_body_read_limit*] |
79 | | -# Integer. Maximum size ofr request content in bytes |
80 | | -# Defaults to <tt>undef</tt> |
81 | | -# |
82 | | -# [*jmx_reset_time*] |
83 | | -# Integer. The number of seconds the JMX reporting service keeps |
84 | | -# data. The data will be reset after this amount of time. |
| 130 | +# [*via*] |
| 131 | +# String. String used in the Via header. |
85 | 132 | # Defaults to <tt>undef</tt> |
86 | 133 | # |
87 | | -# [*client_request_logging*] |
88 | | -# Bool. Logs communication between repose and the end service |
89 | | -# Defaults to <tt>false</tt> |
90 | | -# |
91 | 134 | # [*http_port*] |
92 | 135 | # DEPRECATED. This attribute is deprecated and will be ignored. This has |
93 | 136 | # moved to the system-model configuration. |
|
123 | 166 | class repose::filter::container ( |
124 | 167 | $ensure = present, |
125 | 168 | $app_name = undef, |
126 | | - $log_dir = $repose::params::logdir, |
127 | | - $log_level = $repose::params::log_level, |
128 | | - $syslog_server = undef, |
129 | | - $syslog_port = $repose::params::syslog_port, |
130 | | - $syslog_protocol = $repose::params::syslog_protocol, |
131 | | - $via = undef, |
132 | | - $deployment_directory = $repose::params::deployment_directory, |
133 | | - $deployment_directory_auto_clean = true, |
134 | 169 | $artifact_directory = $repose::params::artifact_directory, |
135 | 170 | $artifact_directory_check_interval = 60000, |
| 171 | + $client_request_logging = undef, |
| 172 | + $content_body_read_limit = undef, |
| 173 | + $deployment_directory = $repose::params::deployment_directory, |
| 174 | + $deployment_directory_auto_clean = true, |
| 175 | + $jmx_reset_time = undef, |
| 176 | + $log_access_facility = $repose::params::log_access_facility, |
| 177 | + $log_access_local = $repose::params::log_access_local, |
| 178 | + $log_access_local_name = $repose::params::log_access_local_name, |
| 179 | + $log_access_syslog = $repose::params::log_access_syslog, |
| 180 | + $log_dir = $repose::params::logdir, |
| 181 | + $log_level = $repose::params::log_level, |
| 182 | + $log_local_policy = $repose::params::log_local_policy, |
| 183 | + $log_local_size = $repose::params::log_local_size, |
| 184 | + $log_local_rotation_count = $repose::params::log_local_rotation_count, |
| 185 | + $log_repose_facility = $repose::params::log_repose_facility, |
136 | 186 | $logging_configuration = $repose::params::logging_configuration, |
137 | 187 | $ssl_enabled = false, |
138 | 188 | $ssl_keystore_filename = undef, |
139 | 189 | $ssl_keystore_password = undef, |
140 | 190 | $ssl_key_password = undef, |
141 | | - $content_body_read_limit = undef, |
142 | | - $jmx_reset_time = undef, |
143 | | - $client_request_logging = undef, |
| 191 | + $syslog_server = undef, |
| 192 | + $syslog_port = $repose::params::syslog_port, |
| 193 | + $syslog_protocol = $repose::params::syslog_protocol, |
| 194 | + $via = undef, |
| 195 | + # BELOW ARE DEPRECATED |
144 | 196 | $http_port = undef, |
145 | 197 | $https_port = undef, |
146 | 198 | $connection_timeout = undef, |
|
149 | 201 | ) inherits repose::params { |
150 | 202 |
|
151 | 203 | ### Validate parameters |
| 204 | + validate_bool($log_access_local) |
| 205 | + validate_bool($log_access_syslog) |
| 206 | + validate_string($log_access_facility) |
| 207 | + validate_string($log_dir) |
| 208 | + validate_string($log_level) |
| 209 | + validate_string($log_access_local_name) |
| 210 | + validate_string($log_syslog_facility) |
152 | 211 |
|
153 | 212 | ## ensure |
154 | 213 | if ! ($ensure in [ present, absent ]) { |
|
0 commit comments