Puppet the /etc/elasticsearch directory
* modules/elasticsearch/manifests/init.pp: Brown bag fix... the package installation used to make this directory, but now we want to put files in it prior to package installation. Change-Id: Id3069999d59f965226bcae8f21ef7a93e4d44c72
This commit is contained in:
parent
e4a7180522
commit
f25d388f4b
@ -70,6 +70,13 @@ class elasticsearch (
|
||||
]
|
||||
}
|
||||
|
||||
file { '/etc/elasticsearch':
|
||||
ensure => directory,
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0755',
|
||||
}
|
||||
|
||||
file { '/etc/elasticsearch/elasticsearch.yml':
|
||||
ensure => present,
|
||||
content => template('elasticsearch/elasticsearch.yml.erb'),
|
||||
@ -77,6 +84,7 @@ class elasticsearch (
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0644',
|
||||
require => File['/etc/elasticsearch'],
|
||||
}
|
||||
|
||||
file { '/etc/elasticsearch/templates':
|
||||
@ -84,6 +92,7 @@ class elasticsearch (
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0755',
|
||||
require => File['/etc/elasticsearch'],
|
||||
}
|
||||
|
||||
file { '/etc/elasticsearch/default-mapping.json':
|
||||
@ -93,6 +102,7 @@ class elasticsearch (
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0644',
|
||||
require => File['/etc/elasticsearch'],
|
||||
}
|
||||
|
||||
file { '/etc/default/elasticsearch':
|
||||
@ -106,8 +116,6 @@ class elasticsearch (
|
||||
|
||||
service { 'elasticsearch':
|
||||
ensure => running,
|
||||
require => [
|
||||
Package['elasticsearch'],
|
||||
],
|
||||
require => Package['elasticsearch'],
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user