add bundle:elasticsearch

This commit is contained in:
Franzi 2022-01-09 22:04:11 +01:00
parent 764f70b603
commit 2e907264fd
Signed by: kunsi
GPG key ID: 12E3D2136B818350
5 changed files with 82 additions and 1 deletions

View file

@ -0,0 +1,18 @@
% if node.metadata.get('elasticsearch/cluster-name', None):
cluster.name: ${node.metadata.get('elasticsearch/cluster-name')}
% endif
node.name: ${node.name}
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
bootstrap.memory_lock: true
# By default Elasticsearch is only accessible on localhost. Set a different
# address here to expose this node on the network:
#
#network.host: 192.168.0.1
#
# By default Elasticsearch listens for HTTP traffic on the first free port it
# finds starting at 9200. Set a specific HTTP port here:
#
http.port: 9200

View file

@ -0,0 +1,17 @@
files = {
'/etc/elasticsearch/elasticsearch.yml': {
'content_type': 'mako',
'triggers': {
'svc_systemd:elasticsearch:restart',
}
},
}
svc_systemd = {
'elasticsearch': {
'needs': {
'file:/etc/elasticsearch/elasticsearch.yml',
'pkg_apt:elasticsearch',
},
},
}

View file

@ -0,0 +1,14 @@
defaults = {
'apt': {
'repos': {
'elasticsearch': {
'items': {
'deb https://artifacts.elastic.co/packages/7.x/apt stable main',
},
},
},
'packages': {
'elasticsearch': {},
},
},
}