salt icon indicating copy to clipboard operation
salt copied to clipboard

cannot set custom installation path in windows installer

Open Grokzen opened this issue 13 years ago • 7 comments

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

Grokzen avatar Apr 15 '13 20:04 Grokzen

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.

UtahDave avatar Apr 16 '13 16:04 UtahDave

You could do it in 2 steps

  1. 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.
  2. 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.

Grokzen avatar Apr 17 '13 07:04 Grokzen

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)

t-v avatar Feb 05 '14 13:02 t-v

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.

stale[bot] avatar Nov 10 '17 19:11 stale[bot]

DO we have any update on this? Please suggest any workaround to set custom install location.

tamalnath avatar Feb 01 '18 05:02 tamalnath

@twangboy Can you comment here?

rallytime avatar Feb 01 '18 15:02 rallytime

This is currently not supported. However, there is some discussion to move in that direction. https://github.com/saltstack/salt/issues/42801

twangboy avatar Feb 01 '18 20:02 twangboy