We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Every run I do the system is reporting itself as changed, even though I can't see any obvious reason why this would be
Notice: /Stage[main]/Profile::Base::Windows/Psrepository[PSGallery]/source_location: source_location changed 'https://www.powershellgallery.com/api/v2' to 'https://www.powershellgallery.com/api/v2/' Notice: /Stage[main]/Profile::Base::Windows/Psrepository[PSGallery]/installation_policy: installation_policy changed 'untrusted' to 'trusted'
The manifest itself is basically straight from the examples:
psrepository { 'PSGallery': ensure => present, source_location => 'https://www.powershellgallery.com/api/v2/', installation_policy => 'trusted', } package { 'PSGelf': ensure => latest, provider => 'powershellcore', source => 'PSGallery', }
The text was updated successfully, but these errors were encountered:
Hi - looks like there is an extra slash on the end of the source location - could you try with
psrepository { 'PSGallery': ensure => present, source_location => 'https://www.powershellgallery.com/api/v2', installation_policy => 'trusted', }
If that doesn't work could you post the output of the following powershell command please? Get-PSRepository PSGallery | fl *
Get-PSRepository PSGallery | fl *
Sorry, something went wrong.
I was running into the same issue, removing the slash fixed the issue.
No branches or pull requests
Every run I do the system is reporting itself as changed, even though I can't see any obvious reason why this would be
Notice: /Stage[main]/Profile::Base::Windows/Psrepository[PSGallery]/source_location: source_location changed 'https://www.powershellgallery.com/api/v2' to 'https://www.powershellgallery.com/api/v2/' Notice: /Stage[main]/Profile::Base::Windows/Psrepository[PSGallery]/installation_policy: installation_policy changed 'untrusted' to 'trusted'
The manifest itself is basically straight from the examples:
psrepository { 'PSGallery': ensure => present, source_location => 'https://www.powershellgallery.com/api/v2/', installation_policy => 'trusted', } package { 'PSGelf': ensure => latest, provider => 'powershellcore', source => 'PSGallery', }
The text was updated successfully, but these errors were encountered: