forked from saltstack/salt
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add gitfs and git_pillar fallback branch
Add a fallback branch when no matching branch is found. Example: ```yaml gitfs_remotes: - http://foo.com/states/top.git: - all_saltenvs: master - http://foo.com/states/apache.git: - fallback: master - http://foo.com/states/nginx.git: - fallback: master - http://foo.com/states/webapp.git: - fallback: develop ``` Where a state in `webapp` includes a state of `apache`. With this change, one can test a feature branch of `webapp` without needing to create the same branch in `apache`. Similarly, one can test a feature branch of `apache` without needing to create the same branch in `webapp`. This is a forward port of pull request saltstack#51971 from Mathieu Parent. Signed-off-by: Benjamin Drung <benjamin.drung@cloud.ionos.com>
- Loading branch information
Showing
8 changed files
with
392 additions
and
25 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,6 +59,7 @@ | |
|
||
PER_REMOTE_OVERRIDES = ( | ||
"base", | ||
"fallback", | ||
"mountpoint", | ||
"root", | ||
"ssl_verify", | ||
|
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
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
Oops, something went wrong.