saltstack / saltstack/salt

Returning Successful Execution of jobs on target minions

Open
#66,518 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
15.7k
Forks
5.6k
Avg merge
2d 44m
Merged PRs (30d)
80

Description

Hi, i am new to salt and i am trying to schedule salt states and find out whether they have successfully been executed on the respective minions or not. I am using schedule.sls to create Jobs, and i am successfully able to run the jobs on the minions during the scheduled time.

However, in the log files on the master, in /var/log/salt/master, there were no logs indicating successful execution of the scheduled job on the minion.I even made sure to include this argument in my scheduled jobs, ' return_job: true'.
On the Master. I want to automatically generate separate directories for each minion containing files of each job scheduled to run on that minion. Each file containing timestamps along with message whenever a job is successfully run on that minion.

Would be great if anyone can guide me on how to do this using salt tools.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with Salt's scheduler and job-return documentation for schedule.sls and the return_job: true option, then compare the expected behavior with /var/log/salt/master. Done should clarify whether per-minion job directories and timestamped success files are supported by existing Salt tools or require a separately scoped feature.

Written by the indexing model from the issue text.

Assessment

Domain
devops, infrastructure
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.