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

Keeps reporting that system is changing #19

Open
paesbiger opened this issue Dec 14, 2018 · 2 comments
Open

Keeps reporting that system is changing #19

paesbiger opened this issue Dec 14, 2018 · 2 comments

Comments

@paesbiger
Copy link

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', }

@hbuckle
Copy link
Owner

hbuckle commented Dec 14, 2018

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 *

@bFekete
Copy link

bFekete commented Jan 30, 2019

I was running into the same issue, removing the slash fixed the issue.

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

No branches or pull requests

3 participants