mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
122 lines
2.9 KiB
Plaintext
122 lines
2.9 KiB
Plaintext
# Copyright 2014,2015,2016,2017,2018 Security Onion Solutions, LLC
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
# PCAP Section
|
|
|
|
# Create the logstash group
|
|
stenographergroup:
|
|
group.present:
|
|
- name: stenographer
|
|
- gid: 941
|
|
|
|
# Add the logstash user for the jog4j settings
|
|
stenographer:
|
|
user.present:
|
|
- uid: 941
|
|
- gid: 941
|
|
- home: /opt/so/conf/steno
|
|
|
|
stenoconfdir:
|
|
file.directory:
|
|
- name: /opt/so/conf/steno
|
|
- user: 941
|
|
- group: 939
|
|
- makedirs: True
|
|
|
|
stenoconf:
|
|
file.managed:
|
|
- name: /opt/so/conf/steno/config
|
|
- source: salt://pcap/files/config
|
|
- user: root
|
|
- group: root
|
|
- mode: 644
|
|
- template: jinja
|
|
|
|
sensoroniagentconf:
|
|
file.managed:
|
|
- name: /opt/so/conf/steno/sensoroni.json
|
|
- source: salt://pcap/files/sensoroni.json
|
|
- user: root
|
|
- group: root
|
|
- mode: 644
|
|
- template: jinja
|
|
|
|
stenoca:
|
|
file.directory:
|
|
- name: /opt/so/conf/steno/certs
|
|
- user: 941
|
|
- group: 941
|
|
|
|
pcapdir:
|
|
file.directory:
|
|
- name: /nsm/pcap
|
|
- user: 941
|
|
- group: 941
|
|
- makedirs: True
|
|
|
|
pcaptmpdir:
|
|
file.directory:
|
|
- name: /nsm/pcaptmp
|
|
- user: 941
|
|
- group: 941
|
|
- makedirs: True
|
|
|
|
pcapoutdir:
|
|
file.directory:
|
|
- name: /nsm/pcapout
|
|
- user: 941
|
|
- group: 941
|
|
- makedirs: True
|
|
|
|
pcapindexdir:
|
|
file.directory:
|
|
- name: /nsm/pcapindex
|
|
- user: 941
|
|
- group: 941
|
|
- makedirs: True
|
|
|
|
stenolog:
|
|
file.directory:
|
|
- name: /opt/so/log/stenographer
|
|
- user: 941
|
|
- group: 941
|
|
- makedirs: True
|
|
|
|
so-stenoimage:
|
|
cmd.run:
|
|
- name: docker pull --disable-content-trust=false docker.io/soshybridhunter/so-steno:HH1.1.3
|
|
|
|
so-steno:
|
|
docker_container.running:
|
|
- require:
|
|
- so-stenoimage
|
|
- image: docker.io/soshybridhunter/so-steno:HH1.1.3
|
|
- network_mode: host
|
|
- privileged: True
|
|
- port_bindings:
|
|
- 127.0.0.1:1234:1234
|
|
- binds:
|
|
- /opt/so/conf/steno/certs:/etc/stenographer/certs:rw
|
|
- /opt/so/conf/steno/config:/etc/stenographer/config:rw
|
|
- /nsm/pcap:/nsm/pcap:rw
|
|
- /nsm/pcapindex:/nsm/pcapindex:rw
|
|
- /nsm/pcaptmp:/tmp:rw
|
|
- /nsm/pcapout:/nsm/pcapout:rw
|
|
- /opt/so/log/stenographer:/var/log/stenographer:rw
|
|
- /opt/so/conf/steno/sensoroni.json:/opt/sensoroni/sensoroni.json:ro
|
|
- /opt/so/log/stenographer:/opt/sensoroni/logs:rw
|
|
- watch:
|
|
- /opt/so/conf/steno/sensoroni.json
|