Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Created October 10, 2016 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/2627c033bcf90a7912ed7e2b9589d89c to your computer and use it in GitHub Desktop.
Save anonymous/2627c033bcf90a7912ed7e2b9589d89c to your computer and use it in GitHub Desktop.
Salt Minion Schedule
Trace Error
2016-10-10 05:40:46,178 [salt.utils.schedule][ERROR ][12646] Unhandled exception running state.sls
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/salt/utils/schedule.py", line 739, in handle_func
kwargs['__pub_{0}'.format(key)] = val
TypeError: list indices must be integers, not str
top.sls
# Match by site and managed nodes
base:
'G@site:site1 and G@managed-node:True':
- match: compound
- site1.schedules
schedules.sls
include:
- site1.schedules.hourly
- site1.schedules.daily
- site1.schedules.weekly
- site1.schedules.monthly
hourly.sls
scheduleHourly:
schedule.present:
- function: state.sls
- minutes: 60
- splay: 1800
- enabled: True
- job_args:
- site1.users
- job_kwargs:
- test: False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment