Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Bootstrap Failing on New Installs #1827

Open
doesitblend opened this issue May 16, 2022 · 5 comments
Open

Windows Bootstrap Failing on New Installs #1827

doesitblend opened this issue May 16, 2022 · 5 comments
Labels

Comments

@doesitblend
Copy link

Description of Issue/Question

The latest version of the Windows bootstrap script checks for a registry key that will not exist if Salt is not already installed. The code producing the error seems to be on line 190 of the script.

Setup

Deploy a fresh Windows VM

Steps to Reproduce Issue

Run the bootstrap script with the options shown in the second image attached

Versions and Systems

Bootstrap version: 2022.03.15

win_bootstrap_1
win_bootstrap_2

@twangboy
Copy link
Contributor

This probably needs to be wrapped in a Try/Except block...

@doesitblend
Copy link
Author

doesitblend commented May 16, 2022

@twangboy One recommendation I received on how to resolve this was the following:

The Get-ItemProperty call probably needs its -ErrorAction set to “SilentlyContinue”.

This may be an alternative to the existing code, but I'm not very familiar with Powershell and its best practices.

@twangboy
Copy link
Contributor

That would probably work too, but the variable would be empty. So, set it first, then SilentlyContinue.

@austinbrowder
Copy link

I think the bigger issue here is that this causes problems for windows bootstraping in 3005.1+ because the default location the minion looks for confs is nolonger c:\salt.
https://docs.saltproject.io/salt/install-guide/en/latest/topics/install-by-operating-system/windows.html#install-windows

@dmurphy18
Copy link
Contributor

@doesitblend Can you retry with the latest bootstrap script which has been heavily updated this July, noting that support for older EOL version of Salt has been dropped. If the latest version of the bootstrap script resolves your issues, please consider closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants
@twangboy @dmurphy18 @austinbrowder @doesitblend and others