Add template support for the path.data
Also ensure the directory exists and is owned by elasticsearch if specified. Change-Id: I501d5995acc018d8e27a0a216609b4d4ed138864
This commit is contained in:
parent
b990d859d2
commit
57c667dd6b
|
@ -81,6 +81,14 @@ class elasticsearch (
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if 'path.data' in $es_template_config {
|
||||||
|
file { $es_template_config['path.data']:
|
||||||
|
ensure => directory,
|
||||||
|
owner => 'elasticsearch',
|
||||||
|
require => Package['elasticsearch'],
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
file { '/etc/elasticsearch':
|
file { '/etc/elasticsearch':
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
|
|
|
@ -175,6 +175,9 @@ indices.memory.index_buffer_size: "<%= es_template_config['indices.memory.index_
|
||||||
# space on creation. For example:
|
# space on creation. For example:
|
||||||
#
|
#
|
||||||
# path.data: /path/to/data1,/path/to/data2
|
# path.data: /path/to/data1,/path/to/data2
|
||||||
|
<% if es_template_config.has_key?('path.data') then -%>
|
||||||
|
path.data: "<%= es_template_config['path.data'] %>"
|
||||||
|
<% end -%>
|
||||||
|
|
||||||
# Path to temporary files:
|
# Path to temporary files:
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue