![]() ![]() ![]()
Also ‘git’ seems to be available everywhere. Weirdly enough, sometimes salt-call seems to be in PATH, so I can use it from any folder in PowerShell. And we can run ‘salt-call –local’, a masterless, standalone setup suitable for quick testing. Wonder what’s ‘setxkbmap fi’ in PowerShell? > Set-WinUserLanguageList -LanguageList fi-FI -Force On Windows desktop, useful tools menu opens with ugly-X. Well done, you can now control Windows with Salt. $ sudo salt ug cmd.run 'Get-ChildItem C:' shell='powershell'ĭirectory: C:\Windows\system32\config\systemprofile You can do most Windows things by running PowerShell. Of course, you can also use pkg.installed in your states (idempotent configuration). Or many $ sudo salt '*' pkg.install gedit,firefox,steam,vlc Uninstall mucommander ubuntu install#Install a single package $ sudo salt '*' pkg.install vlc $ sudo salt -G 'os:windows' pkg.refresh_db Install Software – Firefox, Steam, Inkscape… On Salt master $ sudo salt-run winrepo.update_git_repos If only there was a way to install git on all machines on my network… Uninstall mucommander ubuntu update#You must have git installed to update your git repos. Update: On newer salt, you must give “salt” group write permission to /srv/salt/win/ on master. This is the one-time configuration so that packages are easy to install. Enable Salt Windows Software Repositories $ sudo salt-keyĪt least in my testing with virtual machines, Windows slaves are much slower than Linux slaves. Minion id must be different from other minion ids. Update: All versions of Salt Minion for Windows on Salt homepageĪdd your master IP address and minion id when asked. You probably want Python 3 and amd64 version. On Windows (to-be) slave, download and install the same Salt version salt-minion package. In the next step, slave needs to know where to connect. $ sudo apt-get -y install salt-master salt-minionĬheck your master ip address or public, fully qualified domain name. $ echo "deb xenial main"|sudo tee /etc/apt//saltstack.list $ sudo apt-get update ![]() $ sudo apt-key add SALTSTACK-GPG-KEY.pub # New trustĪdding a new key as trusted means a new trust relationship. Master salt version must always be same or newer than slaves. Latest versions of salt work better on Windows. If you don’t have a specific need for a newer version, you can use the one from default repositories instead of installing latest version.Īll versions of Salt are listed on. Update: Ubuntu 18.04 LTS has Salt version 2017.7.4 Nitrogen, which works with Windows slaves. Start with a working Salt master-slave setup on Linux. If you’re getting tired of Windows, Xubuntu Linux might help. If you need a sample Windows installation for testing, has no-cost VirtualBox images of Windows 10. Two Windows slaves are used in this article, ug and winslave. Instead, it points some interesting directions for managing Windows. Prerequisites: Following this article requires familiarity with Linux command line, Salt master-slave pull architecture and some knowledge of Windows. Salt makes it easier to administer Windows boxes. Even though Windows command line has been improving with PowerShell, it still lacks package manager. After all, it’s probably the most popular desktop. Windows is a popular platform for games, and sometimes you need it for some specific software. Uninstall mucommander ubuntu windows 10#This article has been updated with Ubuntu 18.04 LTS and latest Windows 10 information. Later, more complicated features are looked at. $ sudo salt winslave cmd.run 'Get-ChildItem C:' shell='powershell' $ sudo salt '*' pkg.install gedit,firefox,steam,vlc Uninstall mucommander ubuntu how to#This long article explores Windows management with Salt.įirst, it shows you how to automatically install software to Windows, control Windows boxes behind NAT and firewall and remotely run arbitrary PowerShell commands on Windows. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |