Set permissions on /var/lib/elasticsearch
It is possible when we move volumes from one server to another that our UID permissions are not currect. Have puppet ensure they are setup properly. Change-Id: I8f15b60507d1d52235d2db49753df144bea046fe Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
@@ -66,6 +66,14 @@ class elasticsearch (
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
file { '/var/lib/elasticsearch':
|
||||||
|
ensure => directory,
|
||||||
|
group => 'elasticsearch',
|
||||||
|
owner => 'elasticsearch',
|
||||||
|
recurse => true,
|
||||||
|
require => Package['elasticsearch'],
|
||||||
|
}
|
||||||
|
|
||||||
if 'path.data' in $es_template_config {
|
if 'path.data' in $es_template_config {
|
||||||
file { $es_template_config['path.data']:
|
file { $es_template_config['path.data']:
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
|
|||||||
Reference in New Issue
Block a user