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: master:
interface: CHANGEME esaccessip: CHANGEME
lbprocs: CHANGEME esheap: CHANGEME
esclustername: CHANGEME

View File

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