cannot set custom installation path in windows installer
Basiclly i do not allways want to install salt at the current default path c:\salt and it should bepossible to set the path in the installer. Also do not forget the ability to set the path when installing salt silent/unattended.
One extra thing is that the default paths could should be rendered from this set path so that all paths in the minion config is working proper directly after installing. Related to issue https://github.com/saltstack/salt/issues/4122
I agree. Eventually I want to move the default install to a standard location in %ProgramFiles%, but haven't had the time to make sure correct permissions and such things are working correctly.
It shouldn't be hard to allow for an option in the installer to change the install location. Where do you think the config files and var directories should go? I don't think config files and cache files go in the %ProgramFiles% tree.
You could do it in 2 steps
- Just give the ability to pick install directory and keep the current structure and let the user choose where he wants the binaries, and there is still the possibility to change where all other folders is in the config file if he wants to.
- After that you can optimize where all files should go by default. If i think about it some, then it should maybe be that the salt config file should be where it is in %saltdir%\conf\minion and cache files could be in %AppData%
I do not the best practise but it should not be hard to find out how other people have done and copy that.
I would personally prefer to put it @ d:\ops\tools\salt the reason for that is that we would like to keep the c:\ drive as clean and production-only as possible. and currently almost all our tools are located in the tools folder, with a script folder next to it.
(also, my apologies for the necromancy on this thread, but thought it might be usefull to support this option)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.
DO we have any update on this? Please suggest any workaround to set custom install location.
@twangboy Can you comment here?
This is currently not supported. However, there is some discussion to move in that direction. https://github.com/saltstack/salt/issues/42801