mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
ES salt module - Rename to elasticsearch
This commit is contained in:
@@ -17,6 +17,10 @@
|
|||||||
{% set esheap = salt['pillar.get']('master:esheap', '') %}
|
{% set esheap = salt['pillar.get']('master:esheap', '') %}
|
||||||
{% set esaccessip = salt['pillar.get']('master:esaccessip', '') %}
|
{% set esaccessip = salt['pillar.get']('master:esaccessip', '') %}
|
||||||
|
|
||||||
|
vm.max_map_count:
|
||||||
|
sysctl.present:
|
||||||
|
- value: 262144
|
||||||
|
|
||||||
# Add ES Group
|
# Add ES Group
|
||||||
elasticsearchgroup:
|
elasticsearchgroup:
|
||||||
group.present:
|
group.present:
|
||||||
@@ -32,16 +36,16 @@ elasticsearch:
|
|||||||
|
|
||||||
eslog4jfile:
|
eslog4jfile:
|
||||||
file.managed:
|
file.managed:
|
||||||
- name: /opt/so/conf/elastic/log4j2.properties
|
- name: /opt/so/conf/elasticsearch/log4j2.properties
|
||||||
- source: salt://elastic/files/log4j2.properties
|
- source: salt://elasticsearch/files/log4j2.properties
|
||||||
- user: 930
|
- user: 930
|
||||||
- group: 939
|
- group: 939
|
||||||
- template: jinja
|
- template: jinja
|
||||||
|
|
||||||
esyml:
|
esyml:
|
||||||
file.managed:
|
file.managed:
|
||||||
- name: /opt/so/conf/elastic/elasticsearch.yml
|
- name: /opt/so/conf/elasticsearch/elasticsearch.yml
|
||||||
- source: salt://elastic/files/elasticsearch.yml
|
- source: salt://elasticsearch/files/elasticsearch.yml
|
||||||
- user: 930
|
- user: 930
|
||||||
- group: 939
|
- group: 939
|
||||||
- template: jinja
|
- template: jinja
|
||||||
@@ -68,7 +72,7 @@ so-elasticsearch:
|
|||||||
- environment:
|
- environment:
|
||||||
- bootstrap.memory_lock=true
|
- bootstrap.memory_lock=true
|
||||||
- cluster.name={{ esclustername }}
|
- cluster.name={{ esclustername }}
|
||||||
- ES_JAVA_OPTS="-Xms{{ esheap }} -Xmx{{ esheap }}"
|
- 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:
|
||||||
Reference in New Issue
Block a user