-
Notifications
You must be signed in to change notification settings - Fork 50
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
Add support for internal PS repositories #195
Comments
Thinking out loud, here's what I think will work for everyone: Phase 1
Pros/Cons
Phase 2
NonNodeData = @{
Lability = @{
DSCResource = @(
## Downloads from the host/default PSRepostory URI
@{ Name = 'xNetworking'; RequiredVersion = '3.2.0.0'; }
## Downloads from a different PSRepostory URI
@{ Name = 'xPSDesiredStateConfiguration'; Uri = 'http://MyInternalPSRepository.lab.local/api/v2/'; RequiredVersion = '6.0.0.0'; }
)
}
} I'm not sure whether we just need host, i.e. https://www.powershellgallery.com - as the |
Phase 1 would be exactly what I'm looking for - our ProGet server caches Powershell Gallery and I want to force use of that server. Since Lability downloads directly rather than using save-module it bypasses any settings we make for repositories. I should add that many orgs I work with prefer to use their own repository for nuget and powershell as it allows teams to specify version of modules, hang on to older versions that may disappear from public repositories, and vet modules before making them available. This enhancement would be a great help for them. |
@rikhepworth Thanks for your input. Do you have any views on whether the |
@iainbrighton I can't answer that right now. I need to do some testing with our ProGet server. My current recollection is that we don't specify the /api/v2 suffix for download, but I need to check. |
Lability currently only supports the PS Gallery, Github and Filesystem module "providers". If using an internal repository, e.g. ProGet or PSPrivateGallery, it would be great to be able to download modules from there too..
The text was updated successfully, but these errors were encountered: