SOCtopus: Initial Commit

This commit is contained in:
Wes Lambert
2019-03-15 02:40:02 +00:00
parent 6e29ad90c7
commit 28c0cda16b
3 changed files with 47 additions and 0 deletions

View File

@@ -389,6 +389,17 @@ enable_standard_analyst_3000_{{ip}}:
- position: 1
- save: True
enable_standard_analyst_7000_{{ip}}:
iptables.insert:
- table: filter
- chain: DOCKER-USER
- jump: ACCEPT
- proto: tcp
- source: {{ ip }}
- dport: 7000
- position: 1
- save: True
enable_standard_analyst_9000_{{ip}}:
iptables.insert:
- table: filter

View File

@@ -0,0 +1,12 @@
{%- set ip = salt['pillar.get']('static:masterip', '') %}
[es]
es_url = http://{{ ip }}:9200
[hive]
hive_url = http://{{ ip }}:9000
hive_key = YOURHIVEAPIKEYHERE -- TO LATER BE REPLACED BY JINJA
[log]
logfile = /tmp/soctopus.log

24
salt/soctopus/init.sls Normal file
View File

@@ -0,0 +1,24 @@
soctopusdir:
file.directory:
- name: /opt/so/conf/soctopus
- user: 939
- group: 939
- makedirs: True
soctopussync:
file.recurse:
- name: /opt/so/conf/soctopus
- source: salt://soctopus/files
- user: 939
- group: 939
- template: jinja
so-soctopus:
docker_container.running:
- image: wlambert/soctopus
- hostname: soctopus
- binds:
- /opt/so/conf/soctopus/SOCtopus.conf:/SOCtopus/SOCtopus.conf:ro
- port_bindings:
- 0.0.0.0:7000:7000