Fix Windows repo settings using values from 2015.8 documentation #205
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Current Windows repo settings do not work for a 2015.8 master. Checked the documentation at:
Found that a number of settings have been renamed -- those changes need to be transferred to this formula.
Commit: 7474d42
Method
Existing settings converted using the documentation:
win_repo_dir_ng
=>winrepo_dir_ng
win_gitrepos_ng
=>winrepo_remotes_ng
Testing
winrepo_dir_ng
winrepo_remotes_ng
Question re: error in documentation
Found a problem in the docs that needs to be fixed:
https://docs.saltstack.com/en/latest/ref/configuration/master.html#winrepo-dir:
https://docs.saltstack.com/en/latest/ref/configuration/master.html#winrepo-dir-ng:
winrepo_dir
towinrepo_dir_ng
Commit: c4e116e
Method
The documentation explains that there are settings required for pre-2015.8 minions. So copied the existing pre-2015.8 section "Windows Software Repo settings - Pre 2015.8" and converted using the new values from the documentation:
win_repo
=>winrepo_dir
win_repo_mastercachefile
=>winrepo_cachefile
/srv/salt/win/repo/winrepo.p
=>winrepo.p
win_gitrepos
=>winrepo_remotes
Testing
winrepo_dir
winrepo_cachefile
winrepo.p
winrepo_remotes
Commit: 7f36259
Method
Find & replace (for this section only):
{%
=>{%-
Testing
All blank lines are no longer rendered.
Settings still be transferred from the documentation
There are still some new settings mentioned in the documentation that could be transferred to this formula:
Shall I start a new issue for these?