Skip to content

Commit

Permalink
Added minion schedular configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mecavity committed Jul 20, 2017
1 parent 9e7bcd5 commit d3d85d5
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions salt/files/minion.d/f_defaults.conf
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,27 @@ mine_functions:
# second on the minion scheduler.
{{ get_config('loop_interval', '1') }}


# When using the scheduler at least one schedule needs to be
# defined. The user running the salt master will need read access to the repo.
{% if 'schedule' in cfg_minion -%}
{%- do default_keys.append('schedule') %}
schedule:
{%- for schedule in cfg_minion['schedule'] %}
{%- if schedule is iterable and schedule is not string %}
{%- for name, children in schedule.items() %}
{{ name }}:
{%- for child in children %}
{%- for key, value in child.items() %}
{{ key }}: {{ value }}
{%- endfor -%}
{%- endfor -%}
{%- endfor -%}
{%- endif -%}
{%- endfor -%}
{%- endif %}


# Some installations choose to start all job returns in a cache or a returner
# and forgo sending the results back to a master. In this workflow, jobs
# are most often executed with --async from the Salt CLI and then results
Expand Down

0 comments on commit d3d85d5

Please sign in to comment.