-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathelasticsearch.sls
57 lines (47 loc) · 1.41 KB
/
elasticsearch.sls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
include:
- java
elasticsearch:
pkg.installed:
- sources:
- elasticsearch: https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.6.deb
service.running:
- name: elasticsearch
- running: True
- enable: True
- require:
- pkg: elasticsearch
- watch:
- file: /etc/elasticsearch/elasticsearch.yml
- file: /etc/default/elasticsearch
/etc/default/elasticsearch:
file.managed:
- source: salt://etc/default/elasticsearch.jinja
- template: jinja
- required:
- pkg: elasticsearch
/etc/elasticsearch/elasticsearch.yml:
file.managed:
- source: salt://etc/elasticsearch/elasticsearch.yml.jinja
- template: jinja
- user: elasticsearch
- group: elasticsearch
- mode: 664
- required:
- pkg: elasticsearch
/etc/elasticsearch/logging.yml:
file.managed:
- source: salt://etc/elasticsearch/logging.yml.jinja
- template: jinja
- user: elasticsearch
- group: elasticsearch
- mode: 664
- required:
- pkg: elasticsearch
/usr/share/elasticsearch/data:
file.directory:
- user: elasticsearch
- group: elasticsearch
- mode: 755
- makedirs: True
- required:
- pkg: elasticsearch