mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
ES salt module - Add domainstats
This commit is contained in:
@@ -5,5 +5,6 @@ master:
|
|||||||
esclustername: {{ grains.host }}
|
esclustername: {{ grains.host }}
|
||||||
freq: 0
|
freq: 0
|
||||||
domainstats: 0
|
domainstats: 0
|
||||||
lsheap:
|
lsheap: 1500m
|
||||||
lsaccessip:
|
lsaccessip: 127.0.0.1
|
||||||
|
elastalert: 1
|
||||||
|
|||||||
@@ -35,6 +35,14 @@ elasticsearch:
|
|||||||
- uid: 930
|
- uid: 930
|
||||||
- gid: 930
|
- gid: 930
|
||||||
- home: /opt/so/conf/elasticsearch
|
- home: /opt/so/conf/elasticsearch
|
||||||
|
- createhome: False
|
||||||
|
|
||||||
|
esconfdir:
|
||||||
|
file.directory:
|
||||||
|
- name: /opt/so/conf/elasticsearch
|
||||||
|
- user: 930
|
||||||
|
- group: 939
|
||||||
|
- makedirs: True
|
||||||
|
|
||||||
eslog4jfile:
|
eslog4jfile:
|
||||||
file.managed:
|
file.managed:
|
||||||
@@ -107,6 +115,7 @@ freqserver:
|
|||||||
- uid: 935
|
- uid: 935
|
||||||
- gid: 935
|
- gid: 935
|
||||||
- home: /opt/so/conf/freqserver
|
- home: /opt/so/conf/freqserver
|
||||||
|
- createhome: False
|
||||||
|
|
||||||
# Create the log directory
|
# Create the log directory
|
||||||
freqlogdir:
|
freqlogdir:
|
||||||
@@ -126,3 +135,39 @@ so-freq:
|
|||||||
- network_mode: so-elastic-net
|
- network_mode: so-elastic-net
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if dstats == 1 %}
|
||||||
|
|
||||||
|
# Create the group
|
||||||
|
dstatsgroup:
|
||||||
|
group.present:
|
||||||
|
- name: domainstats
|
||||||
|
- gid: 936
|
||||||
|
|
||||||
|
# Add user
|
||||||
|
domainstats:
|
||||||
|
user.present:
|
||||||
|
- uid: 936
|
||||||
|
- gid: 936
|
||||||
|
- home: /opt/so/conf/domainstats
|
||||||
|
- createhome: False
|
||||||
|
|
||||||
|
# Create the log directory
|
||||||
|
dstatslogdir:
|
||||||
|
file.directory:
|
||||||
|
- name: /opt/so/log/domainstats
|
||||||
|
- user: 936
|
||||||
|
- group: 936
|
||||||
|
- makedirs: True
|
||||||
|
|
||||||
|
so-domainstats:
|
||||||
|
docker_container.running:
|
||||||
|
- image: securityonionsolutions/so-domainstats
|
||||||
|
- hostname: domainstats
|
||||||
|
- name: domainstats
|
||||||
|
- user: domainstats
|
||||||
|
- binds:
|
||||||
|
- /opt/so/log/domainstats:/var/log/domain_stats
|
||||||
|
- network_mode: so-elastic-net
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user