mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
ES salt module - Add elasticsearch user
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
# Example Pillar file for a master
|
# Example Pillar file for a master
|
||||||
master:
|
master:
|
||||||
esaccessip: CHANGEME
|
esaccessip: 127.0.0.1
|
||||||
esheap: CHANGEME
|
esheap: CHANGEME
|
||||||
esclustername: CHANGEME
|
esclustername: {{ grains.host }}
|
||||||
|
|||||||
@@ -2,9 +2,16 @@
|
|||||||
{% 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) %}
|
||||||
|
|
||||||
|
# Add ES user
|
||||||
|
elasticsearch:
|
||||||
|
user.present:
|
||||||
|
- uid: 930
|
||||||
|
- gid: 930
|
||||||
|
- home: /opt/so/conf/elasticsearch
|
||||||
|
|
||||||
so-elasticsearch:
|
so-elasticsearch:
|
||||||
dockerng.running:
|
dockerng.running:
|
||||||
- image: pillaritem/so-logstash
|
- image: pillaritem/so-elasticsearch
|
||||||
- hostname: elasticsearch
|
- hostname: elasticsearch
|
||||||
- user: elasticsearch
|
- user: elasticsearch
|
||||||
- environment:
|
- environment:
|
||||||
|
|||||||
Reference in New Issue
Block a user