Cortex - initial commit

This commit is contained in:
Josh Brower
2019-11-01 18:39:51 -04:00
parent 783a9cd102
commit b6c77ba695
8 changed files with 261 additions and 13 deletions
+42 -8
View File
@@ -20,6 +20,28 @@ hiveconf:
- user: 939
- group: 939
- template: jinja
cortexconfdir:
file.directory:
- name: /opt/so/conf/cortex
- makedirs: True
- user: 939
- group: 939
cortexlogdir:
file.directory:
- name: /opt/so/log/cortex
- makedirs: True
- user: 939
- group: 939
cortexconf:
file.recurse:
- name: /opt/so/conf/cortex
- source: salt://hive/thehive/etc
- user: 939
- group: 939
- template: jinja
# Install Elasticsearch
@@ -68,15 +90,27 @@ so-thehive-es:
#so-corteximage:
# cmd.run:
# - name: docker pull --disable-content-trust=false docker.io/soshybridhunter/so-cortex:HH1.0.3
# - name: docker pull --disable-content-trust=false docker.io/soshybridhunter/so-cortex:HH1.1.1
#so-cortex:
# docker_container.running:
# - image: thehiveproject/cortex:latest
# - hostname: so-cortex
# - name: so-cortex
# - port_bindings:
# - 0.0.0.0:9001:9001
so-cortex:
docker_container.running:
# - require:
# - so-corteximage
# - image: docker.io/soshybridhunter/so-cortex:HH1.1.1
- image: so-cortex:dev
- hostname: so-cortex
- name: so-cortex
- user: 939
- binds:
- /opt/so/conf/hive/etc/cortex-application.conf:/opt/cortex/conf/application.conf:ro
- port_bindings:
- 0.0.0.0:9001:9001
cortexscript:
cmd.script:
- source: salt://hive/thehive/scripts/cortex_init.sh
- cwd: /opt/so
- template: jinja
so-thehiveimage:
cmd.run: