ES salt module - added pillar items for ES

This commit is contained in:
Mike Reeves
2018-02-08 09:36:53 -05:00
parent 3bfe47afa8
commit a4e05a60de
2 changed files with 9 additions and 8 deletions

View File

@@ -1,4 +1,5 @@
# Example Pillar file for a sensor
# Example Pillar file for a master
master:
interface: CHANGEME
lbprocs: CHANGEME
esaccessip: CHANGEME
esheap: CHANGEME
esclustername: CHANGEME

View File

@@ -3,11 +3,11 @@ so-elasticsearch:
dockerng.running:
- image: pillaritem/so-logstash
- hostname: elasticsearch
- user:
- user: elasticsearch
- environment:
- bootstrap.memory_lock=true
- cluster.name={{ grains.host }}
- ES_JAVA_OPTS="-Xms$ELASTICSEARCH_HEAP -Xmx$ELASTICSEARCH_HEAP"
- cluster.name={{ esclustername }}
- ES_JAVA_OPTS="-Xms{{ esheap }} -Xmx{{ esheap }}"
- http.host=0.0.0.0
- transport.host=127.0.0.1
- ulimits:
@@ -15,8 +15,8 @@ so-elasticsearch:
- nofile=65536:65536
- nproc=4096
- port_bindings:
- 9200
- 9300
- {{ esaccessip }}:9200:9200
- {{ esaccessip }}:9300:9300
- binds:
- /opt/so/conf/logstash/log4j2.properties:/usr/share/logstash/config/log4j2.properties:ro
- /opt/so/conf/elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro