Skip to content

Commit f4779fd

Browse files
committed
Allow change logdir mode value
1 parent 961d1c9 commit f4779fd

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

REFERENCE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ The following parameters are available in the `elasticsearch` class:
125125
* [`keystore_path`](#keystore_path)
126126
* [`license`](#license)
127127
* [`logdir`](#logdir)
128+
* [`logdir_mode`](#logdir_mode)
128129
* [`logging_config`](#logging_config)
129130
* [`logging_file`](#logging_file)
130131
* [`logging_level`](#logging_level)
@@ -421,6 +422,12 @@ Data type: `Stdlib::Absolutepath`
421422

422423
Directory that will be used for Elasticsearch logging.
423424

425+
##### <a name="logdir_mode"></a>`logdir_mode`
426+
427+
Data type: `String`
428+
429+
Mode directory that will be used for Elasticsearch logging (default 2750).
430+
424431
##### <a name="logging_config"></a>`logging_config`
425432

426433
Data type: `Hash`

manifests/config.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
ensure => 'directory',
4444
group => $elasticsearch::elasticsearch_group,
4545
owner => $elasticsearch::elasticsearch_user,
46-
mode => '2750';
46+
mode => $elasticsearch::logdir_mode;
4747
$elasticsearch::real_plugindir:
4848
ensure => 'directory',
4949
group => $elasticsearch::elasticsearch_group,

manifests/init.pp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@
148148
# @param logdir
149149
# Directory that will be used for Elasticsearch logging.
150150
#
151+
# @param logdir_mode
152+
# Mode directory that will be used for Elasticsearch logging (default 2750).
153+
#
151154
# @param logging_config
152155
# Representation of information to be included in the log4j.properties file.
153156
#
@@ -404,6 +407,7 @@
404407
Boolean $restart_config_change = $restart_on_change,
405408
Boolean $restart_package_change = $restart_on_change,
406409
Boolean $restart_plugin_change = $restart_on_change,
410+
Stdlib::Filemode $logdir_mode = '2750',
407411
) {
408412
#### Validate parameters
409413

0 commit comments

Comments
 (0)