-
Notifications
You must be signed in to change notification settings - Fork 88
Enable post-network script execution and optionally suppress module auto-updates (Initialize-OSDCloudStartnet.ps1) #288
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
Conversation
I accidentally named this branch feature/InintStartNet2 instead of feature/InitStartNet2. Since it's already in use and to avoid any risky operations like renaming or recreating the PR, I'll proceed with it as is. |
5c1c483
to
9e34f07
Compare
Note
|
64bb32f
to
19f6c0c
Compare
Hi @OSDeploy, I've been continuously rebasing this branch onto the latest master to keep it up to date and mergeable. Please let me know if any further changes are needed. |
19f6c0c
to
29c8ef9
Compare
Hi @OSDeploy, I've been continuously rebasing this branch onto the latest master to keep it up to date and mergeable. Please let me know if any further changes are needed. |
@KatsuhiroWatanabe can you DM me on LinkedIn or Twitter or email you so I can ask some more details? David Segura |
29c8ef9
to
f65d128
Compare
Hi @OSDeploy, I've been continuously rebasing this branch onto the latest master to keep it up to date and mergeable. Please let me know if any further changes are needed. |
…pression Enhanced Initialize-OSDCloudStartNet.ps1 to support execution custom PowerShell scripts after establishing a network connection. Added support for suppressing automatic updates of the lastest OSD module.
f65d128
to
05feba4
Compare
I've been continuously rebasing this branch onto the latest master to keep it up to date and mergeable. Please let me know if any further changes are needed. |
Summary
This PR introduces two enhancements to the OSDCloudStartnet initialization process:
Post-Network Script Execution
A custom PowerShell script can now be executed after a network connection is established.
OSDCloud\Config\StarNet2
folderOptional Suppression of Module Auto-Update
The automatic update of OSD modules can now be disabled by setting
{ "OSDAutoUpdate": false }
inOSDCloud\Config\Initialize-OSDCloudStartnet.json
.Import-Module -Force
, ensuring consistent behavior in customized environments.Motivation
These changes provide greater control and flexibility during the early stages of OSDCloud initialization, especially in environments where deterministic behavior or offline operation is required.
A typical use case involves hosting pre-validated catalog files of company standard device models on external storage (e.g., Azure Blob) and downloading them during initialization. This approach avoids relying on the generic catalogs bundled with the latest module versions, which—while always up-to-date—may not reflect the specific validation or optimization required for certain hardware models. Suppressing automatic updates helps preserve these curated configurations and ensures consistent deployment behavior.
Notes
EDIT (7/21/2025)
feature/support_offline_Catalog (PR:#284) cherry-picked this PR for integration.