From 655eea2b007124d9abe0674b5281435817cf290d Mon Sep 17 00:00:00 2001 From: Wes Date: Wed, 30 Aug 2023 13:03:56 +0000 Subject: [PATCH] Add port_bindings --- salt/elasticagent/enabled.sls | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/salt/elasticagent/enabled.sls b/salt/elasticagent/enabled.sls index 963b8549b..7d0f401e9 100644 --- a/salt/elasticagent/enabled.sls +++ b/salt/elasticagent/enabled.sls @@ -31,6 +31,10 @@ so-elastic-agent: - {{ XTRAHOST }} {% endfor %} {% endif %} + - port_bindings: + {% for BINDING in DOCKER.containers['so-elastic-agent'].port_bindings %} + - {{ BINDING }} + {% endfor %} - binds: - /opt/so/conf/elastic-agent/elastic-agent.yml:/usr/share/elastic-agent/elastic-agent.yml:ro - /opt/so/log/elasticagent:/usr/share/elastic-agent/logs