Last active
September 26, 2020 20:21
-
-
Save promorphus/5c48ef34692ce3d7df3e3e267a18e854 to your computer and use it in GitHub Desktop.
Saltstack scheduling fun.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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