Goss should be able to assert against Windows Registry state #616
Labels
approved
community maintained
These issues are not maintained by the goss maintainers. Community contributions are always welcome.
enhancement
Describe the feature:
Goss should be able to assert against the state and contents of the Windows Registry.
Describe the solution you'd like
In order to properly support Windows configuration use cases, lots of things will need to be able to assert against registry keys. On *nix systems, you'd generally use a
file.contains
assertion against a configuration file, but the Windows equivalent is generally keys stored in the registry.Describe alternatives you've considered
The best I've got right now is that you can write a Powershell script that checks values in the registry and then outputs status, and then you wrap that script in a goss assertion. This is hacky, requires emplacing the script in the right place with the right permissions, etc, isolates some of the configuration to be checked separate from the rest, and just generally feels dirty.
The text was updated successfully, but these errors were encountered: