Skip to content

Commit 40e341b

Browse files
authored
Merge pull request #1259 from voxpupuli/remove-unused-params
Remove unused parameters (logging)
2 parents 7959023 + 4c6c0f3 commit 40e341b

File tree

5 files changed

+0
-294
lines changed

5 files changed

+0
-294
lines changed

REFERENCE.md

Lines changed: 0 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -111,18 +111,13 @@ The following parameters are available in the `elasticsearch` class:
111111
* [`config`](#-elasticsearch--config)
112112
* [`configdir`](#-elasticsearch--configdir)
113113
* [`configdir_recurselimit`](#-elasticsearch--configdir_recurselimit)
114-
* [`daily_rolling_date_pattern`](#-elasticsearch--daily_rolling_date_pattern)
115114
* [`datadir`](#-elasticsearch--datadir)
116-
* [`default_logging_level`](#-elasticsearch--default_logging_level)
117115
* [`defaults_location`](#-elasticsearch--defaults_location)
118-
* [`deprecation_logging`](#-elasticsearch--deprecation_logging)
119-
* [`deprecation_logging_level`](#-elasticsearch--deprecation_logging_level)
120116
* [`download_tool`](#-elasticsearch--download_tool)
121117
* [`download_tool_insecure`](#-elasticsearch--download_tool_insecure)
122118
* [`download_tool_verify_certificates`](#-elasticsearch--download_tool_verify_certificates)
123119
* [`elasticsearch_group`](#-elasticsearch--elasticsearch_group)
124120
* [`elasticsearch_user`](#-elasticsearch--elasticsearch_user)
125-
* [`file_rolling_type`](#-elasticsearch--file_rolling_type)
126121
* [`homedir`](#-elasticsearch--homedir)
127122
* [`indices`](#-elasticsearch--indices)
128123
* [`init_defaults`](#-elasticsearch--init_defaults)
@@ -134,10 +129,6 @@ The following parameters are available in the `elasticsearch` class:
134129
* [`license`](#-elasticsearch--license)
135130
* [`logdir`](#-elasticsearch--logdir)
136131
* [`logdir_mode`](#-elasticsearch--logdir_mode)
137-
* [`logging_config`](#-elasticsearch--logging_config)
138-
* [`logging_file`](#-elasticsearch--logging_file)
139-
* [`logging_level`](#-elasticsearch--logging_level)
140-
* [`logging_template`](#-elasticsearch--logging_template)
141132
* [`manage_datadir`](#-elasticsearch--manage_datadir)
142133
* [`manage_logdir`](#-elasticsearch--manage_logdir)
143134
* [`manage_repo`](#-elasticsearch--manage_repo)
@@ -164,12 +155,8 @@ The following parameters are available in the `elasticsearch` class:
164155
* [`restart_package_change`](#-elasticsearch--restart_package_change)
165156
* [`restart_plugin_change`](#-elasticsearch--restart_plugin_change)
166157
* [`roles`](#-elasticsearch--roles)
167-
* [`rolling_file_max_backup_index`](#-elasticsearch--rolling_file_max_backup_index)
168-
* [`rolling_file_max_file_size`](#-elasticsearch--rolling_file_max_file_size)
169158
* [`scripts`](#-elasticsearch--scripts)
170159
* [`secrets`](#-elasticsearch--secrets)
171-
* [`security_logging_content`](#-elasticsearch--security_logging_content)
172-
* [`security_logging_source`](#-elasticsearch--security_logging_source)
173160
* [`service_name`](#-elasticsearch--service_name)
174161
* [`service_provider`](#-elasticsearch--service_provider)
175162
* [`slm_policies`](#-elasticsearch--slm_policies)
@@ -294,45 +281,18 @@ Data type: `Integer`
294281
Dictates how deeply the file copy recursion logic should descend when
295282
copying files from the `configdir` to instance `configdir`s.
296283

297-
##### <a name="-elasticsearch--daily_rolling_date_pattern"></a>`daily_rolling_date_pattern`
298-
299-
Data type: `String`
300-
301-
File pattern for the file appender log when file_rolling_type is 'dailyRollingFile'.
302-
303284
##### <a name="-elasticsearch--datadir"></a>`datadir`
304285

305286
Data type: `Elasticsearch::Multipath`
306287

307288
Allows you to set the data directory of Elasticsearch.
308289

309-
##### <a name="-elasticsearch--default_logging_level"></a>`default_logging_level`
310-
311-
Data type: `String`
312-
313-
Default logging level for Elasticsearch.
314-
315-
Default value: `$logging_level`
316-
317290
##### <a name="-elasticsearch--defaults_location"></a>`defaults_location`
318291

319292
Data type: `Optional[Stdlib::Absolutepath]`
320293

321294
Absolute path to directory containing init defaults file.
322295

323-
##### <a name="-elasticsearch--deprecation_logging"></a>`deprecation_logging`
324-
325-
Data type: `Boolean`
326-
327-
Whether to enable deprecation logging. If enabled, deprecation logs will be
328-
saved to ${cluster.name}_deprecation.log in the Elasticsearch log folder.
329-
330-
##### <a name="-elasticsearch--deprecation_logging_level"></a>`deprecation_logging_level`
331-
332-
Data type: `String`
333-
334-
Default deprecation logging level for Elasticsearch.
335-
336296
##### <a name="-elasticsearch--download_tool"></a>`download_tool`
337297

338298
Data type: `Optional[String]`
@@ -366,14 +326,6 @@ Data type: `String`
366326

367327
The user Elasticsearch should run as. This also sets file ownership.
368328

369-
##### <a name="-elasticsearch--file_rolling_type"></a>`file_rolling_type`
370-
371-
Data type: `Enum['dailyRollingFile', 'rollingFile', 'file']`
372-
373-
Configuration for the file appender rotation. It can be 'dailyRollingFile',
374-
'rollingFile' or 'file'. The first rotates by name, the second one by size
375-
or third don't rotate automatically.
376-
377329
##### <a name="-elasticsearch--homedir"></a>`homedir`
378330

379331
Data type: `Stdlib::Absolutepath`
@@ -446,32 +398,6 @@ Mode directory that will be used for Elasticsearch logging (default 2750).
446398

447399
Default value: `'2750'`
448400

449-
##### <a name="-elasticsearch--logging_config"></a>`logging_config`
450-
451-
Data type: `Hash`
452-
453-
Representation of information to be included in the log4j.properties file.
454-
455-
##### <a name="-elasticsearch--logging_file"></a>`logging_file`
456-
457-
Data type: `Optional[String]`
458-
459-
Instead of a hash, you may supply a `puppet://` file source for the
460-
log4j.properties file.
461-
462-
##### <a name="-elasticsearch--logging_level"></a>`logging_level`
463-
464-
Data type: `String`
465-
466-
Default logging level for Elasticsearch.
467-
468-
##### <a name="-elasticsearch--logging_template"></a>`logging_template`
469-
470-
Data type: `Optional[String]`
471-
472-
Use a custom logging template - just supply the relative path, i.e.
473-
`$module/elasticsearch/logging.yml.erb`
474-
475401
##### <a name="-elasticsearch--manage_datadir"></a>`manage_datadir`
476402

477403
Data type: `Boolean`
@@ -667,18 +593,6 @@ Data type: `Hash`
667593

668594
Define roles via a hash. This is mainly used with Hiera's auto binding.
669595

670-
##### <a name="-elasticsearch--rolling_file_max_backup_index"></a>`rolling_file_max_backup_index`
671-
672-
Data type: `Integer`
673-
674-
Max number of logs to store whern file_rolling_type is 'rollingFile'
675-
676-
##### <a name="-elasticsearch--rolling_file_max_file_size"></a>`rolling_file_max_file_size`
677-
678-
Data type: `String`
679-
680-
Max log file size when file_rolling_type is 'rollingFile'
681-
682596
##### <a name="-elasticsearch--scripts"></a>`scripts`
683597

684598
Data type: `Hash`
@@ -692,20 +606,6 @@ Data type: `Optional[Hash]`
692606
Optional default configuration hash of key/value pairs to store in the
693607
Elasticsearch keystore file. If unset, the keystore is left unmanaged.
694608

695-
##### <a name="-elasticsearch--security_logging_content"></a>`security_logging_content`
696-
697-
Data type: `Optional[String]`
698-
699-
File content for x-pack logging configuration file (will be placed
700-
into log4j2.properties file).
701-
702-
##### <a name="-elasticsearch--security_logging_source"></a>`security_logging_source`
703-
704-
Data type: `Optional[String]`
705-
706-
File source for x-pack logging configuration file (will be placed
707-
into log4j2.properties).
708-
709609
##### <a name="-elasticsearch--service_name"></a>`service_name`
710610

711611
Data type: `String`

data/common.yaml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,11 @@ elasticsearch::autoupgrade: false
1111
elasticsearch::config: {}
1212
elasticsearch::configdir: "/etc/elasticsearch"
1313
elasticsearch::configdir_recurselimit: 2
14-
elasticsearch::default_logging_level: INFO
15-
elasticsearch::daily_rolling_date_pattern: |
16-
"'.'yyyy-MM-dd"
1714
elasticsearch::defaults_location:
18-
elasticsearch::deprecation_logging: false
19-
elasticsearch::deprecation_logging_level: DEBUG
2015
elasticsearch::download_tool:
2116
elasticsearch::download_tool_insecure:
2217
elasticsearch::download_tool_verify_certificates: true
2318
elasticsearch::ensure: present
24-
elasticsearch::file_rolling_type: dailyRollingFile
2519
elasticsearch::indices: {}
2620
elasticsearch::init_defaults: {}
2721
elasticsearch::init_defaults_file:
@@ -30,10 +24,6 @@ elasticsearch::instances: {}
3024
elasticsearch::jvm_options: []
3125
elasticsearch::license:
3226
elasticsearch::logdir: "/var/log/elasticsearch"
33-
elasticsearch::logging_config: {}
34-
elasticsearch::logging_file:
35-
elasticsearch::logging_level: INFO
36-
elasticsearch::logging_template:
3727
elasticsearch::manage_datadir: true
3828
elasticsearch::manage_logdir: true
3929
elasticsearch::manage_repo: true
@@ -53,12 +43,8 @@ elasticsearch::purge_secrets: false
5343
elasticsearch::repo_stage: false
5444
elasticsearch::restart_on_change: false
5545
elasticsearch::roles: {}
56-
elasticsearch::rolling_file_max_backup_index: 1
57-
elasticsearch::rolling_file_max_file_size: 10MB
5846
elasticsearch::scripts: {}
5947
elasticsearch::secrets:
60-
elasticsearch::security_logging_content:
61-
elasticsearch::security_logging_source:
6248
elasticsearch::service_name: elasticsearch
6349
elasticsearch::service_provider: systemd
6450
elasticsearch::snapshot_repositories: {}

manifests/config.pp

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -141,28 +141,6 @@
141141
$_tls_config = {}
142142
}
143143

144-
# # Logging file or hash
145-
# if ($elasticsearch::logging_file != undef) {
146-
# $_log4j_content = undef
147-
# } else {
148-
# if ($elasticsearch::logging_template != undef ) {
149-
# $_log4j_content = template($elasticsearch::logging_template)
150-
# } else {
151-
# $_log4j_content = template("${module_name}/etc/elasticsearch/log4j2.properties.erb")
152-
# }
153-
# $_logging_source = undef
154-
# }
155-
# file {
156-
# "${elasticsearch::configdir}/log4j2.properties":
157-
# ensure => file,
158-
# content => $_log4j_content,
159-
# source => $_logging_source,
160-
# mode => '0644',
161-
# notify => $elasticsearch::_notify_service,
162-
# require => Class['elasticsearch::package'],
163-
# before => Class['elasticsearch::service'],
164-
# }
165-
166144
# Generate Elasticsearch config
167145
$data =
168146
$elasticsearch::config + { 'path.data' => $elasticsearch::datadir } + { 'path.logs' => $elasticsearch::logdir } + $_tls_config

manifests/init.pp

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -76,25 +76,12 @@
7676
# Dictates how deeply the file copy recursion logic should descend when
7777
# copying files from the `configdir` to instance `configdir`s.
7878
#
79-
# @param daily_rolling_date_pattern
80-
# File pattern for the file appender log when file_rolling_type is 'dailyRollingFile'.
81-
#
8279
# @param datadir
8380
# Allows you to set the data directory of Elasticsearch.
8481
#
85-
# @param default_logging_level
86-
# Default logging level for Elasticsearch.
87-
#
8882
# @param defaults_location
8983
# Absolute path to directory containing init defaults file.
9084
#
91-
# @param deprecation_logging
92-
# Whether to enable deprecation logging. If enabled, deprecation logs will be
93-
# saved to ${cluster.name}_deprecation.log in the Elasticsearch log folder.
94-
#
95-
# @param deprecation_logging_level
96-
# Default deprecation logging level for Elasticsearch.
97-
#
9885
# @param download_tool
9986
# Command-line invocation with which to retrieve an optional package_url.
10087
#
@@ -113,11 +100,6 @@
113100
# @param elasticsearch_user
114101
# The user Elasticsearch should run as. This also sets file ownership.
115102
#
116-
# @param file_rolling_type
117-
# Configuration for the file appender rotation. It can be 'dailyRollingFile',
118-
# 'rollingFile' or 'file'. The first rotates by name, the second one by size
119-
# or third don't rotate automatically.
120-
#
121103
# @param homedir
122104
# Directory where the elasticsearch installation's files are kept (plugins, etc.)
123105
#
@@ -151,20 +133,6 @@
151133
# @param logdir_mode
152134
# Mode directory that will be used for Elasticsearch logging (default 2750).
153135
#
154-
# @param logging_config
155-
# Representation of information to be included in the log4j.properties file.
156-
#
157-
# @param logging_file
158-
# Instead of a hash, you may supply a `puppet://` file source for the
159-
# log4j.properties file.
160-
#
161-
# @param logging_level
162-
# Default logging level for Elasticsearch.
163-
#
164-
# @param logging_template
165-
# Use a custom logging template - just supply the relative path, i.e.
166-
# `$module/elasticsearch/logging.yml.erb`
167-
#
168136
# @param manage_datadir
169137
# Enable datadir management (default true).
170138
#
@@ -270,27 +238,13 @@
270238
# @param roles
271239
# Define roles via a hash. This is mainly used with Hiera's auto binding.
272240
#
273-
# @param rolling_file_max_backup_index
274-
# Max number of logs to store whern file_rolling_type is 'rollingFile'
275-
#
276-
# @param rolling_file_max_file_size
277-
# Max log file size when file_rolling_type is 'rollingFile'
278-
#
279241
# @param scripts
280242
# Define scripts via a hash. This is mainly used with Hiera's auto binding.
281243
#
282244
# @param secrets
283245
# Optional default configuration hash of key/value pairs to store in the
284246
# Elasticsearch keystore file. If unset, the keystore is left unmanaged.
285247
#
286-
# @param security_logging_content
287-
# File content for x-pack logging configuration file (will be placed
288-
# into log4j2.properties file).
289-
#
290-
# @param security_logging_source
291-
# File source for x-pack logging configuration file (will be placed
292-
# into log4j2.properties).
293-
#
294248
# @param service_name
295249
# Elasticsearch service name
296250
#
@@ -364,17 +318,13 @@
364318
Hash $config,
365319
Stdlib::Absolutepath $configdir,
366320
Integer $configdir_recurselimit,
367-
String $daily_rolling_date_pattern,
368321
Elasticsearch::Multipath $datadir,
369322
Optional[Stdlib::Absolutepath] $defaults_location,
370-
Boolean $deprecation_logging,
371-
String $deprecation_logging_level,
372323
Optional[String] $download_tool,
373324
Optional[String] $download_tool_insecure,
374325
Boolean $download_tool_verify_certificates,
375326
String $elasticsearch_group,
376327
String $elasticsearch_user,
377-
Enum['dailyRollingFile', 'rollingFile', 'file'] $file_rolling_type,
378328
Stdlib::Absolutepath $homedir,
379329
Hash $indices,
380330
Hash $init_defaults,
@@ -383,10 +333,6 @@
383333
Array[String] $jvm_options,
384334
Optional[Variant[String, Hash]] $license,
385335
Stdlib::Absolutepath $logdir,
386-
Hash $logging_config,
387-
Optional[String] $logging_file,
388-
String $logging_level,
389-
Optional[String] $logging_template,
390336
Boolean $manage_datadir,
391337
Boolean $manage_logdir,
392338
Boolean $manage_repo,
@@ -407,12 +353,8 @@
407353
Variant[Boolean, String] $repo_stage,
408354
Boolean $restart_on_change,
409355
Hash $roles,
410-
Integer $rolling_file_max_backup_index,
411-
String $rolling_file_max_file_size,
412356
Hash $scripts,
413357
Optional[Hash] $secrets,
414-
Optional[String] $security_logging_content,
415-
Optional[String] $security_logging_source,
416358
String $service_name,
417359
Enum['init', 'openbsd', 'openrc', 'systemd'] $service_provider,
418360
Hash $snapshot_repositories,
@@ -430,7 +372,6 @@
430372
Hash $slm_policies = {},
431373
Optional[Stdlib::Absolutepath] $ca_certificate = undef,
432374
Optional[Stdlib::Absolutepath] $certificate = undef,
433-
String $default_logging_level = $logging_level,
434375
Optional[String] $keystore_password = undef,
435376
Optional[Stdlib::Absolutepath] $keystore_path = undef,
436377
Stdlib::Filemode $logdir_mode = '2750',

0 commit comments

Comments
 (0)