fix map for steno

This commit is contained in:
m0duspwnens
2020-10-22 11:24:18 -04:00
parent aa59eff1ac
commit 0b6b6e38fc

View File

@@ -1,15 +1,15 @@
{% set PCAPOPTIONS = {} %}
{% set STENOOPTIONS = {} %}
{% set ENABLED = salt['pillar.get']('steno:enabled', 'True') %}
# don't start the docker container if it is an import node or disabled via pillar
{% if grains.id.split('_')|last == 'import' or ENABLED is sameas false %}
{% set PCAPOPTIONS['start'] = False %}
{% do STENOOPTIONS.update({'start': False}) %}
{% else %}
{% set PCAPOPTIONS['start'] = True %}
{% do STENOOPTIONS.update({'start': True}) %}
{% endif %}
{% if ENABLED is sameas false %}
{% set PCAPOPTIONS['status'] = 'stopped' %}
{% do STENOOPTIONS.update({'status': 'stopped'}) %}
{% else %}
{% set PCAPOPTIONS['status'] = 'running' %}
{% do STENOOPTIONS.update({'status': 'running'}) %}
{% endif %}