Open hkroeber opened 2 years ago
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey. Please be sure to review our Code of Conduct. Also, check out some of our community resources including:
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar. If you have additional questions, email us at saltproject@vmware.com. We’re glad you’ve joined our community and look forward to doing awesome things with you!
Description
For deployments to productive environments there is a need to avoid applying concurrent salt states to the same minion at a time. Disabling a critical salt state seems to be solution to that problem.
Following the documentation here a state file is disabled on a minion, but is still executable in that minion.
Setup
Please be as specific as possible and give set-up details.
The salt master host uses salt-ssh to apply states on the remote minions. There are no current issues in our daily work using salt for remote management.
Steps to Reproduce the behavior
A state file with a dummy operation (for testing) is:
It is disabled using:
List disabled states shows doesn't show the disabled state immediately. It takes multiple calls of the following command ti see that result (10 times in ~2 minutes).
The disable state file is still executable on that minion.
Expected behavior
state.list_disabled
immediately after disabling.Screenshots
Additional context
Content of the 'grains' file in the salt tmp - directory on the minion.