Closed aaronhilton0 closed 1 year ago
Writing down thoughts.....
Able to reproduce:
Running the iis command to retrieve websites, gives the same information:
Questions?????
Think I have found the cause of the issue, ink here: https://stackoverflow.com/questions/59765860/powershells-addsslcertificate-not-working-on-iis-10-non-server-binding
Looking deeper into the issue, look's like it may arise from our commands being out of date.
We may need to update the code to use New-WebBinding
rather than the current Add-WebConfiguration
.
Have made some progress:
PR shown here: https://github.com/puppetlabs/puppetlabs-iis/pull/349/files
Customer has tested against commit '125c510' and reports that the certificate hash appears to be correctly populated, however it is still showing as a corrective change. Looking through the updated log file, it appears that it is adding 'port' => 80 every run. I've asked the customer to manually add the SSL certificate and will update this issue when I have results.
Customer has reported they can manually assign the cert for binding in IIS and it works.
@david22swan Any further thoughts on this?
@cummingscody apologies, had missed the updated saying you'd replied. Could you show me the exact update message
All work now being moved to Jira, here is the associated new ticket: https://tickets.puppetlabs.com/browse/CONT-25
Hello! 👋
This issue has been open for a while and has had no recent activity. We've labelled it with attention-needed
so that we can get a clear view of which issues need our attention.
If you are waiting on a response from us we will try and address your comments on a future Community Day.
Alternatively, if it is no longer relevant to you please close the issue with a comment.
@cummingscody @aaronhilton0 Just wondering if you are happy with the resolution and can we close this?
Closing due to no response, if you are still seeing this issue please reopen.
Describe the Bug
The puppetlabs-iis module is continuously doing corrective changes to binding configurations within the manifests. I am able to duplicate the problem with some of the example code on the forge modules page. Examples of code and output are below.
Expected Behavior
The module should set the binding configurations once and only make changes when corrections are actually needed
Steps to Reproduce
I was able to reproduce with the following Puppet code
This code reports the following corrective changes every time the agent runs.
Environment
Additional Context
Add any other context about the problem here.