Open fabricesemti80 opened 1 year ago
@fabricesemti80 looking at the link you posted in the Stack Overflow post > Usage section > the example recommends that installation policy is case sensitive and should be trusted
or untrusted
. It also does not use quotes around the installationpolicy text as in the example you shared. Can you try it like the example in the Usage section?
Thanks for your reply @anamnavi
I changed the code to
## ensure PSGallery is present - relies on mod 'dsc-powershellget', '2.2.5-0-3'
dsc_psrepository { 'Trust public gallery':
dsc_name => 'PSGallery',
dsc_ensure => 'Present',
dsc_installationpolicy => trusted,
}
Puppet says it is applied, but there is no change in reallity.
Prerequisites
Steps to reproduce
As I explained it here: https://stackoverflow.com/questions/74549128/why-is-the-installationpolicy-of-the-psgallery-does-not-change-even-when-puppet?noredirect=1#comment131597704_74549128 I am using the Puppet module wrapped around this, and it gives me the output it changed the galery from
untrusted
totrusted
, but in reallity - checking after the Puppet run withGet-Psgalery
- it is not updated. On Stack overflow I have been suggested it is rather an issue with the module than Puppet, so I am hoping to get some advise?Expected behavior
Actual behavior
Error details
Environment data
Visuals
No response