mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
PulledPork Salt Module- init.sls update
This commit is contained in:
27
salt/pulledpork/init.sls
Normal file
27
salt/pulledpork/init.sls
Normal file
@@ -0,0 +1,27 @@
|
||||
# Create a state directory
|
||||
|
||||
ppdir:
|
||||
file.directory:
|
||||
- name: /opt/so/pulledpork
|
||||
- user: 939
|
||||
- group: 939
|
||||
|
||||
rulesdir:
|
||||
file.directory:
|
||||
- name: /opt/so/rules/nids
|
||||
- user: 939
|
||||
- group: 939
|
||||
- makedirs: True
|
||||
|
||||
toosmooth/so-pulledpork:test2:
|
||||
docker_image.present
|
||||
|
||||
so-core:
|
||||
docker_container.running:
|
||||
- image: toosmooth/so-pulledpork:test2
|
||||
- hostname: so-pulledpork
|
||||
- user: socore
|
||||
- binds:
|
||||
- /opt/so/pulledpork/etc:/opt/pulledpork/etc:ro
|
||||
- /opt/so/rules/nids:/opt/so/rules/nids:rw
|
||||
- network_mode: so-elastic-net
|
||||
Reference in New Issue
Block a user