Merge "Puppet the /etc/elasticsearch directory"
This commit is contained in:
commit
16e42ff1fa
@ -70,6 +70,13 @@ class elasticsearch (
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
file { '/etc/elasticsearch':
|
||||||
|
ensure => directory,
|
||||||
|
owner => 'root',
|
||||||
|
group => 'root',
|
||||||
|
mode => '0755',
|
||||||
|
}
|
||||||
|
|
||||||
file { '/etc/elasticsearch/elasticsearch.yml':
|
file { '/etc/elasticsearch/elasticsearch.yml':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
content => template('elasticsearch/elasticsearch.yml.erb'),
|
content => template('elasticsearch/elasticsearch.yml.erb'),
|
||||||
@ -77,6 +84,7 @@ class elasticsearch (
|
|||||||
owner => 'root',
|
owner => 'root',
|
||||||
group => 'root',
|
group => 'root',
|
||||||
mode => '0644',
|
mode => '0644',
|
||||||
|
require => File['/etc/elasticsearch'],
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/etc/elasticsearch/templates':
|
file { '/etc/elasticsearch/templates':
|
||||||
@ -84,6 +92,7 @@ class elasticsearch (
|
|||||||
owner => 'root',
|
owner => 'root',
|
||||||
group => 'root',
|
group => 'root',
|
||||||
mode => '0755',
|
mode => '0755',
|
||||||
|
require => File['/etc/elasticsearch'],
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/etc/elasticsearch/default-mapping.json':
|
file { '/etc/elasticsearch/default-mapping.json':
|
||||||
@ -93,6 +102,7 @@ class elasticsearch (
|
|||||||
owner => 'root',
|
owner => 'root',
|
||||||
group => 'root',
|
group => 'root',
|
||||||
mode => '0644',
|
mode => '0644',
|
||||||
|
require => File['/etc/elasticsearch'],
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/etc/default/elasticsearch':
|
file { '/etc/default/elasticsearch':
|
||||||
@ -106,8 +116,6 @@ class elasticsearch (
|
|||||||
|
|
||||||
service { 'elasticsearch':
|
service { 'elasticsearch':
|
||||||
ensure => running,
|
ensure => running,
|
||||||
require => [
|
require => Package['elasticsearch'],
|
||||||
Package['elasticsearch'],
|
|
||||||
],
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user