Much to my surprise, I found that there is a salt module for chocolatey. Thanks! This works great for installing, uninstalling and listing pkgs of software for windows. In fact chocolatey is very very close to a proper apt-get or yum software package manager but for windows.
But how do I now use this to write salt state into sls files along the usual salt syntax to install certain versions of software packages?
AFAIK the windows minion only use salt-winrepo to add or remove software. What switch do I have to flick, for it to use the chocolatey module to install and remove the software packages using the relevant salt chocolatey module cmd?
On the master I can do
salt ‘my-winpc-1’ chocolatey bootstrap
and this installed chocolatey if needed.
after that I can install software such as the notepad++ editor as simply as
salt ‘my-winpc-1’ chocolatey.install npp
and it goes and installs the notepad++ pkg on my-winpc-1 minion
but where do i put my state sls file that says I want ‘npp’ installed on my-winpc-1?
Thanks for any help, or an example on how to achieve this for installing notepad++ on the windows minion my-winpc-1?
PS: I case you didn’t know about it, like me, here is the salt module for chocolatey