SaltStack
-
Starting to work with Salt. I see plenty of guides on how to use it with Linux, and that is really what I am looking for primarily for my servers, but I also see you can use it with Windows machines. Any good guides out there showing how to do things on Windows in Salt. I have found a few through google but didn't know if anyone had any that I haven't found yet.
-
Windows works the same, nothing really specific to know about it compared to Linux.
-
@scottalanmiller said in SaltStack:
Windows works the same, nothing really specific to know about it compared to Linux.
Okay. Just starting to dig into it.
-
It's basically the same thing.
I've been doing it on Windows a bit now.
TO install it, you can do it manually like this:
https://www.timothygruber.com/linux/saltstack-installation-configuration/#Installing_on_WindowsOr you can use a script like how SodiumSuite does it, like this:
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin\" -y choco install saltminion -y icacls "c:\salt\bin\Lib\site-packages\salt\" /grant "Authenticated Users":(OI)(CI)R echo master: 104.129.171.133 >>c:\salt\conf\minion.d\mast.conf net stop salt-minion && net start salt-minion
NOTE: Change above IP address / FQDN of your own salt master!
-
I have written plenty here for windows specially, let me see if I can find them
-
I have written plenty here for windows specially, let me see if I can find them
This is the most notable one:
https://mangolassi.it/topic/14253/saltstack-windows-playbooks/9But feel free to check all my topics:
https://mangolassi.it/user/emad-r/topics
and search for salt or search all ML for salt -
Here's a SaltStack repo for Windows software:
https://github.com/saltstack/salt-winrepo-ngThese are ready to go and install via your own State files, or CLI.
-
Here is a raw dump of commands I was planning to cover in one of my un-published Blog drafts.
Just keep in mind they are all out of context with no explanation and not in any general order.
Or you can wait for my Blog post, but I haven't had so much free time lately so I don't know when I'll be able to post all this SaltStack-related stuff.
I'm really only posting this here now to act as a reference so you don't have to dig through SaltStack documentation all the time, and to also serve as a getting started type of thing.
-
Thanks guys!! I am loving salt. It looks amazing. Already have a salt master up in the cloud.
-
@tim_g said in SaltStack:
Here's a SaltStack repo for Windows software:
https://github.com/saltstack/salt-winrepo-ngThese are ready to go and install via your own State files, or CLI.
I was looking at a lot of those files, and it would appear to be very easy to setup my own in house repo. I will eventually be trying that.