Skip to content

Instantly share code, notes, and snippets.

@promorphus
promorphus / schedule.sls
Last active September 26, 2020 20:21
Saltstack scheduling fun.
remove_container_{{ containerName }}:
schedule.present:
- function: cmd.run
- job_args:
- "docker rm -f {{ containerName }}"
- once: "{{ (None|strftime("%s")|int + (5 * 60))|strftime("%Y-%m-%dT%H:%M:%S") }}"
- once_fmt: "%Y-%m-%dT%H:%M:%S"