Closed btoohey closed 7 years ago
After investigation on my end I found that Win 2008 R2 does not output an "InstallState" value when running the get-windowsfeature cmdlet. A quick fix would be to validate "Installed" value instead. This is in fact already in place in the code I found on the project's GitHub URL (See code attached) while cloning the repository.
The 'default.rb' file has been edited to check "Installed" value into JSON file instead of "InstallState".
If the version currently available into project repository could be officially published it would fix the issue described above.
Verifying this now.
Seems to work fine for me unless. Closing this issue @p-mcote
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
What are you seeing
Output is truncated but each windowsfeature shows as absent. Specifically setting the following in puppet code:
But after a puppet run, the resources still show as absent even though they are turned on:
What behaviour did you expect instead
Expected windowsfeature to turn on the features on a server's first puppet run and for
Get-WindowsFeature | ConvertTo-JSON
to show the features as turned on.Output log
Pertinent puppet agent -t --debug output:
Any additional information you'd like to impart