Skip to content

Commit 4c6c0f3

Browse files
stjmth-haaks
authored andcommitted
Remove unused parameters (logging)
1 parent 543c582 commit 4c6c0f3

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)
@@ -163,12 +154,8 @@ The following parameters are available in the `elasticsearch` class:
163154
* [`restart_package_change`](#-elasticsearch--restart_package_change)
164155
* [`restart_plugin_change`](#-elasticsearch--restart_plugin_change)
165156
* [`roles`](#-elasticsearch--roles)
166-
* [`rolling_file_max_backup_index`](#-elasticsearch--rolling_file_max_backup_index)
167-
* [`rolling_file_max_file_size`](#-elasticsearch--rolling_file_max_file_size)
168157
* [`scripts`](#-elasticsearch--scripts)
169158
* [`secrets`](#-elasticsearch--secrets)
170-
* [`security_logging_content`](#-elasticsearch--security_logging_content)
171-
* [`security_logging_source`](#-elasticsearch--security_logging_source)
172159
* [`service_name`](#-elasticsearch--service_name)
173160
* [`service_provider`](#-elasticsearch--service_provider)
174161
* [`slm_policies`](#-elasticsearch--slm_policies)
@@ -293,45 +280,18 @@ Data type: `Integer`
293280
Dictates how deeply the file copy recursion logic should descend when
294281
copying files from the `configdir` to instance `configdir`s.
295282

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

304285
Data type: `Elasticsearch::Multipath`
305286

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

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

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

320293
Absolute path to directory containing init defaults file.
321294

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

337297
Data type: `Optional[String]`
@@ -365,14 +325,6 @@ Data type: `String`
365325

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

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

378330
Data type: `Stdlib::Absolutepath`
@@ -445,32 +397,6 @@ Mode directory that will be used for Elasticsearch logging (default 2750).
445397

446398
Default value: `'2750'`
447399

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

476402
Data type: `Boolean`
@@ -658,18 +584,6 @@ Data type: `Hash`
658584

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

661-
##### <a name="-elasticsearch--rolling_file_max_backup_index"></a>`rolling_file_max_backup_index`
662-
663-
Data type: `Integer`
664-
665-
Max number of logs to store whern file_rolling_type is 'rollingFile'
666-
667-
##### <a name="-elasticsearch--rolling_file_max_file_size"></a>`rolling_file_max_file_size`
668-
669-
Data type: `String`
670-
671-
Max log file size when file_rolling_type is 'rollingFile'
672-
673587
##### <a name="-elasticsearch--scripts"></a>`scripts`
674588

675589
Data type: `Hash`
@@ -683,20 +597,6 @@ Data type: `Optional[Hash]`
683597
Optional default configuration hash of key/value pairs to store in the
684598
Elasticsearch keystore file. If unset, the keystore is left unmanaged.
685599

686-
##### <a name="-elasticsearch--security_logging_content"></a>`security_logging_content`
687-
688-
Data type: `Optional[String]`
689-
690-
File content for x-pack logging configuration file (will be placed
691-
into log4j2.properties file).
692-
693-
##### <a name="-elasticsearch--security_logging_source"></a>`security_logging_source`
694-
695-
Data type: `Optional[String]`
696-
697-
File source for x-pack logging configuration file (will be placed
698-
into log4j2.properties).
699-
700600
##### <a name="-elasticsearch--service_name"></a>`service_name`
701601

702602
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
#
@@ -267,27 +235,13 @@
267235
# @param roles
268236
# Define roles via a hash. This is mainly used with Hiera's auto binding.
269237
#
270-
# @param rolling_file_max_backup_index
271-
# Max number of logs to store whern file_rolling_type is 'rollingFile'
272-
#
273-
# @param rolling_file_max_file_size
274-
# Max log file size when file_rolling_type is 'rollingFile'
275-
#
276238
# @param scripts
277239
# Define scripts via a hash. This is mainly used with Hiera's auto binding.
278240
#
279241
# @param secrets
280242
# Optional default configuration hash of key/value pairs to store in the
281243
# Elasticsearch keystore file. If unset, the keystore is left unmanaged.
282244
#
283-
# @param security_logging_content
284-
# File content for x-pack logging configuration file (will be placed
285-
# into log4j2.properties file).
286-
#
287-
# @param security_logging_source
288-
# File source for x-pack logging configuration file (will be placed
289-
# into log4j2.properties).
290-
#
291245
# @param service_name
292246
# Elasticsearch service name
293247
#
@@ -361,17 +315,13 @@
361315
Hash $config,
362316
Stdlib::Absolutepath $configdir,
363317
Integer $configdir_recurselimit,
364-
String $daily_rolling_date_pattern,
365318
Elasticsearch::Multipath $datadir,
366319
Optional[Stdlib::Absolutepath] $defaults_location,
367-
Boolean $deprecation_logging,
368-
String $deprecation_logging_level,
369320
Optional[String] $download_tool,
370321
Optional[String] $download_tool_insecure,
371322
Boolean $download_tool_verify_certificates,
372323
String $elasticsearch_group,
373324
String $elasticsearch_user,
374-
Enum['dailyRollingFile', 'rollingFile', 'file'] $file_rolling_type,
375325
Stdlib::Absolutepath $homedir,
376326
Hash $indices,
377327
Hash $init_defaults,
@@ -380,10 +330,6 @@
380330
Array[String] $jvm_options,
381331
Optional[Variant[String, Hash]] $license,
382332
Stdlib::Absolutepath $logdir,
383-
Hash $logging_config,
384-
Optional[String] $logging_file,
385-
String $logging_level,
386-
Optional[String] $logging_template,
387333
Boolean $manage_datadir,
388334
Boolean $manage_logdir,
389335
Boolean $manage_repo,
@@ -404,12 +350,8 @@
404350
Variant[Boolean, String] $repo_stage,
405351
Boolean $restart_on_change,
406352
Hash $roles,
407-
Integer $rolling_file_max_backup_index,
408-
String $rolling_file_max_file_size,
409353
Hash $scripts,
410354
Optional[Hash] $secrets,
411-
Optional[String] $security_logging_content,
412-
Optional[String] $security_logging_source,
413355
String $service_name,
414356
Enum['init', 'openbsd', 'openrc', 'systemd'] $service_provider,
415357
Hash $snapshot_repositories,
@@ -427,7 +369,6 @@
427369
Hash $slm_policies = {},
428370
Optional[Stdlib::Absolutepath] $ca_certificate = undef,
429371
Optional[Stdlib::Absolutepath] $certificate = undef,
430-
String $default_logging_level = $logging_level,
431372
Optional[String] $keystore_password = undef,
432373
Optional[Stdlib::Absolutepath] $keystore_path = undef,
433374
Optional[Stdlib::Absolutepath] $private_key = undef,

0 commit comments

Comments
 (0)