From 30c40ed3d7f568b5eef07e8c905b6ce72c10622b Mon Sep 17 00:00:00 2001 From: Josh Brower Date: Wed, 9 Feb 2022 10:37:47 -0500 Subject: [PATCH] IDH Initial Support --- salt/common/tools/sbin/so-image-common | 1 + salt/idh/init.sls | 15 ++++----------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/salt/common/tools/sbin/so-image-common b/salt/common/tools/sbin/so-image-common index 9b9c1a344..140d4c63b 100755 --- a/salt/common/tools/sbin/so-image-common +++ b/salt/common/tools/sbin/so-image-common @@ -55,6 +55,7 @@ container_list() { "so-fleet" "so-fleet-launcher" "so-grafana" + "so-idh" "so-idstools" "so-influxdb" "so-kibana" diff --git a/salt/idh/init.sls b/salt/idh/init.sls index 22dbe5ede..a0bcc4572 100644 --- a/salt/idh/init.sls +++ b/salt/idh/init.sls @@ -8,7 +8,7 @@ temp: - group: 939 - makedirs: True -# Create a config directory +# Create a log directory configdir: file.directory: - name: /nsm/idh @@ -27,20 +27,13 @@ idhfiles: - 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 + - image: {{ MANAGER }}:5000/{{ IMAGEREPO }}/so-idh:{{ VERSION }} + - hostname: 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 + - /opt/so/conf/idh/opencanary.conf:/etc/opencanaryd/opencanary.conf:ro \ No newline at end of file