saltstack / salt-bootstrap

Generic Salt Bootstrap Script
Other
926 stars 545 forks source link

Set RootDir depending on Salt Version #1952

Closed twangboy closed 1 year ago

twangboy commented 1 year ago

What does this PR do?

Sets the default RootDir based on the version of Salt. Versions before 3004 used C:\salt. 3004 and older use C:\ProgramData\Program Files\Salt.

What issues does this PR fix or reference?

https://github.com/saltstack/salt-bootstrap/issues/1950

Previous Behavior

All installations would lay down conf in C:\Salt

New Behavior

Now it detects the version being installed and sets up the appropriate RootDir