![]() ![]() Target: Blank (or Windows Servers if you’re targetting more than one)Īn alternative way to install software from winrepo, is by selecting a minion from the minion list, and selecting ‘run command’. Now we’ve got the state file, we just need to create a job to run it against the Windows host itself. ![]() sls file here, not the full ‘filezilla.sls’ ![]() N.B: you only need to pass the name of the. # Description: Installs filezilla 圆4 on minion Path: /windows_software/filezilla.sls # Name: filezilla.sls Go into the SSC console and create a state file with the following details OK, so lets install something with all these wonderful state files within winrepo. To make it easier on yourself, you might as well run a remote session to your Windows host so you can see things happening live. Once that is done, you can disconnect from the SSH session and go back into the SSC console. So head over to the folder above to check all your state file installs are there ls /srv/salt/win/repo/salt-winrepo It’s always good practice to make sure everything is there. Ubuntu / Debian: sudo salt-call pip.install gitpythonīelow is a screenshot of me completing the install on CentOS: PhotonOS: sudo salt-call pip.install gitpython RedHat/CentOS: sudo salt-call pip.install gitpython Remember to run the following commands with root access. Winrepo requires you to have GitPython installed, and you can do so by following the commands relevant to the OS your Saltmaster is running. Depending on what OS your master is running will depend on what commands you will need to run, either way its pretty quick. Firstly, we need to SSH into your SaltMaster to add a repository known as WinRepo. I’ll assume at this point that you’ve got a working SaltStack Config master in place, and at least one Windows Server with the Salt minion (in my case, version 3004-3). I’m not going to go into the detail of getting SaltStack stood up, the terminology or how to install the minions on Windows – all the detail for that in in this blog post a month or so back. But there is more to life than linux right? Lets see how we can use Salt to manage Windows! In the last series with SaltStack Config, we focused more on building out a nginx configuration with beacons and reactors, but that was all done on a ubuntu box. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |