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:
Paul Belanger 2016-05-27 11:44:03 -04:00
parent 28896065c2
commit 20ee6430cb
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
1 changed files with 8 additions and 0 deletions

View File

@ -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 {
file { $es_template_config['path.data']:
ensure => directory,