mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-07-13 20:41:23 +02:00
* Script will pull list of so- images and prune any older than most recent + last version
15 lines
265 B
YAML+Jinja
15 lines
265 B
YAML+Jinja
{% from 'allowed_states.map.jinja' import allowed_states %}
|
|
{% if sls in allowed_states %}
|
|
|
|
prune_images:
|
|
cmd.run:
|
|
- name: so-docker-prune
|
|
|
|
{% else %}
|
|
|
|
{{sls}}_state_not_allowed:
|
|
test.fail_without_changes:
|
|
- name: {{sls}}_state_not_allowed
|
|
|
|
{% endif %}
|