mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
move some es script to src elasticsearch/tools/sbin and dst /usr/sbin. set requires
This commit is contained in:
@@ -53,7 +53,7 @@ vm.max_map_count:
|
|||||||
cascriptsync:
|
cascriptsync:
|
||||||
file.managed:
|
file.managed:
|
||||||
- name: /usr/sbin/so-catrust
|
- name: /usr/sbin/so-catrust
|
||||||
- source: salt://elasticsearch/files/scripts/so-catrust
|
- source: salt://elasticsearch/tools/sbin/so-catrust
|
||||||
- user: 939
|
- user: 939
|
||||||
- group: 939
|
- group: 939
|
||||||
- mode: 750
|
- mode: 750
|
||||||
@@ -63,9 +63,37 @@ cascriptsync:
|
|||||||
cascriptfun:
|
cascriptfun:
|
||||||
cmd.run:
|
cmd.run:
|
||||||
- name: /usr/sbin/so-catrust
|
- name: /usr/sbin/so-catrust
|
||||||
|
- require:
|
||||||
|
- file: cascriptsync
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
# Sync some es scripts
|
||||||
|
es_sync_scripts:
|
||||||
|
file.recurse:
|
||||||
|
- name: /usr/sbin
|
||||||
|
- user: root
|
||||||
|
- group: root
|
||||||
|
- file_mode: 755
|
||||||
|
- template: jinja
|
||||||
|
- source: salt://elasticsearch/tools/sbin
|
||||||
|
- defaults:
|
||||||
|
ELASTICCURL: 'curl'
|
||||||
|
- context:
|
||||||
|
ELASTICCURL: {{ ELASTICAUTH.elasticcurl }}
|
||||||
|
- exclude_pat:
|
||||||
|
- so-elasticsearch-pipelines # exclude this because we need to watch it for changes, we sync it in another state
|
||||||
|
|
||||||
|
so-elasticsearch-pipelines-script:
|
||||||
|
file.managed:
|
||||||
|
- name: /usr/sbin/so-elasticsearch-pipelines
|
||||||
|
- source: salt://elasticsearch/tools/sbin/so-elasticsearch-pipelines
|
||||||
|
- user: 930
|
||||||
|
- group: 939
|
||||||
|
- mode: 754
|
||||||
|
- template: jinja
|
||||||
|
- defaults:
|
||||||
|
ELASTICCURL: {{ ELASTICAUTH.elasticcurl }}
|
||||||
|
|
||||||
# Move our new CA over so Elastic and Logstash can use SSL with the internal CA
|
# Move our new CA over so Elastic and Logstash can use SSL with the internal CA
|
||||||
catrustdir:
|
catrustdir:
|
||||||
file.directory:
|
file.directory:
|
||||||
@@ -297,7 +325,7 @@ so-elasticsearch:
|
|||||||
- file: esyml
|
- file: esyml
|
||||||
- file: esingestconf
|
- file: esingestconf
|
||||||
- file: esingestdynamicconf
|
- file: esingestdynamicconf
|
||||||
- file: so-elasticsearch-pipelines-file
|
- file: so-elasticsearch-pipelines-script
|
||||||
- require:
|
- require:
|
||||||
- file: esyml
|
- file: esyml
|
||||||
- file: eslog4jfile
|
- file: eslog4jfile
|
||||||
@@ -322,27 +350,17 @@ append_so-elasticsearch_so-status.conf:
|
|||||||
- name: /opt/so/conf/so-status/so-status.conf
|
- name: /opt/so/conf/so-status/so-status.conf
|
||||||
- text: so-elasticsearch
|
- text: so-elasticsearch
|
||||||
|
|
||||||
so-elasticsearch-pipelines-file:
|
|
||||||
file.managed:
|
|
||||||
- name: /opt/so/conf/elasticsearch/so-elasticsearch-pipelines
|
|
||||||
- source: salt://elasticsearch/files/so-elasticsearch-pipelines
|
|
||||||
- user: 930
|
|
||||||
- group: 939
|
|
||||||
- mode: 754
|
|
||||||
- template: jinja
|
|
||||||
- defaults:
|
|
||||||
ELASTICCURL: {{ ELASTICAUTH.elasticcurl }}
|
|
||||||
|
|
||||||
so-elasticsearch-pipelines:
|
so-elasticsearch-pipelines:
|
||||||
cmd.run:
|
cmd.run:
|
||||||
- name: /opt/so/conf/elasticsearch/so-elasticsearch-pipelines {{ grains.host }}
|
- name: /usr/sbin/so-elasticsearch-pipelines {{ grains.host }}
|
||||||
- onchanges:
|
- onchanges:
|
||||||
- file: esingestconf
|
- file: esingestconf
|
||||||
- file: esingestdynamicconf
|
- file: esingestdynamicconf
|
||||||
- file: esyml
|
- file: esyml
|
||||||
- file: so-elasticsearch-pipelines-file
|
- file: so-elasticsearch-pipelines-script
|
||||||
- require:
|
- require:
|
||||||
- docker_container: so-elasticsearch
|
- docker_container: so-elasticsearch
|
||||||
|
- file: so-elasticsearch-pipelines-script
|
||||||
|
|
||||||
{% if TEMPLATES %}
|
{% if TEMPLATES %}
|
||||||
so-elasticsearch-templates:
|
so-elasticsearch-templates:
|
||||||
@@ -352,6 +370,7 @@ so-elasticsearch-templates:
|
|||||||
- template: jinja
|
- template: jinja
|
||||||
- require:
|
- require:
|
||||||
- docker_container: so-elasticsearch
|
- docker_container: so-elasticsearch
|
||||||
|
- file: es_sync_scripts
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
so-elasticsearch-roles-load:
|
so-elasticsearch-roles-load:
|
||||||
@@ -361,6 +380,7 @@ so-elasticsearch-roles-load:
|
|||||||
- template: jinja
|
- template: jinja
|
||||||
- require:
|
- require:
|
||||||
- docker_container: so-elasticsearch
|
- docker_container: so-elasticsearch
|
||||||
|
- file: es_sync_scripts
|
||||||
|
|
||||||
{% endif %} {# if grains['role'] != 'so-helix' #}
|
{% endif %} {# if grains['role'] != 'so-helix' #}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user