mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-09 10:42:54 +01:00
47 lines
891 B
Plaintext
47 lines
891 B
Plaintext
# IDH State
|
|
|
|
# Create a config directory
|
|
temp:
|
|
file.directory:
|
|
- name: /opt/so/conf/idh
|
|
- user: 939
|
|
- group: 939
|
|
- makedirs: True
|
|
|
|
# Create a config directory
|
|
configdir:
|
|
file.directory:
|
|
- name: /nsm/idh
|
|
- user: 939
|
|
- group: 939
|
|
- makedirs: True
|
|
|
|
# Sync IDH files
|
|
idhfiles:
|
|
file.recurse:
|
|
- name: /opt/so/conf/idh
|
|
- user: 0
|
|
- group: 0
|
|
- file_mode: 755
|
|
- source: salt://idh/config
|
|
- replace: False
|
|
- template: jinja
|
|
|
|
# Build IDH Docker
|
|
so-idh:
|
|
docker_image.present:
|
|
- build: /opt/so/saltstack/local/salt/idh
|
|
- tag: latest
|
|
|
|
# Set IDH Docker to run
|
|
so-idh-run:
|
|
docker_container.running:
|
|
- image: so-idh
|
|
- name: so-idh
|
|
- detach: True
|
|
- network_mode: host
|
|
- restart_policy: always
|
|
- binds:
|
|
- /nsm/idh:/var/tmp:rw
|
|
- /opt/so/conf/idh/opencanary.conf:/etc/opencanaryd/opencanary.conf:ro
|