Merge "Add template support for the path.data"

This commit is contained in:
Jenkins 2015-07-14 18:56:13 +00:00 committed by Gerrit Code Review
commit 1bc472e79c
2 changed files with 11 additions and 0 deletions

View File

@ -65,6 +65,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':
ensure => directory,
owner => 'root',

View File

@ -178,6 +178,9 @@ indices.memory.index_buffer_size: "<%= es_template_config['indices.memory.index_
# space on creation. For example:
#
# 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:
#