Hi,
I'm new to Salt and having a bit of a hard time to wrap my head around how I can manage Windows services and nest requires/watch conditions. I assume the
win_service module is the way to go to manage services as I want to do the following:
- Make sure a service is installed and running
- If it is not installed or of wrong version, (possibly uninstall and) install the proper version
- The service requires access to a configuration file, and if this file is not available, it needs to be copied onto the minion (preferably from the salt master)
- A specific port must be open in the firewall, and if not, a rule needs to be added
Is there a recommended approach on how to add this kind of service to a highstate?
The service installer is not provided via a package manager, and must be installed/uninstalled from .msi.
Any suggestions are very much appreciated.
Regards,
Fredrik