Skip to content

Instantly share code, notes, and snippets.

@promorphus
Last active September 26, 2020 20:21
Show Gist options
  • Save promorphus/5c48ef34692ce3d7df3e3e267a18e854 to your computer and use it in GitHub Desktop.
Save promorphus/5c48ef34692ce3d7df3e3e267a18e854 to your computer and use it in GitHub Desktop.
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"
{# and as a simple test case.... #}
temp-script-here:
- function: cmd.run
- job_args:
- "wall test"
- seconds: 30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment