Aikataulu – Palvelinten hallinta ict4tn022 3004-ti ja 3002-to – loppukevät 2018 5p

Just write what you want (idempotency). Control almost everything with one system (single source of truth). In plain text (infrastructure as code, versionable). Control 10 computers. Or 100. Or 1000. Or control 2071 computers, like Jussi did on a previous … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , , , , , , , , , | 118 Comments

Configuration Management Course is Finished

My students have created many interesting projects on configuration management course. The feedback was excellent, 4.6 out of 5. The most common feedback (mode) was 5 out of 5. Thank you! Jussi Isosompppi controlled 2071 slave computers with Salt.

Posted in Uncategorized | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Control Windows with Salt

This long article explores Windows management with Salt. First, 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. $ sudo salt ‘*’ pkg.install gedit,firefox,steam,vlc … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , , , , , , , , , , , , | 4 Comments

Configure a Live USB in Two (2) Commands – terokarvinen/sirotin

You boot a computer form your USB stick and give two commands. It’s configured. Install your programs, your settings, your configuration – automatically. Start from Sirotin, fork it, make it your own. wget https://raw.githubusercontent.com/terokarvinen/sirotin/master/run.sh bash run.sh   Fork me on … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , | Leave a comment

Secrets in Salt Pillars – SSH Port Change

Salt helps you configure 1, 10, 100 or more computers. Secrets, such as encryption keys, must be given to authorized slaves only. In Salt, secrets are kept in pillars. If you are just starting with pillars, do pillars tutorial first. … Continue reading

Posted in Uncategorized | Tagged , , , , , | Leave a comment

Make a Million of Those – Jinja Templating Salt States

Do you need a 50 users and Apache name based virtual hosts for each? If you use salt, you can use loops and variables with Jinja templates on your states. This short example configuration creates three text files with different … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , , , | Leave a comment

Windows Installer Cheatsheet – Install Hundreds of Programs Automatically – Silent Installer Flags

Windows lacks package management. But you can install Windows applications silently, with a single command. And this cheatsheet tells you the command.

Posted in Uncategorized | Tagged , , , , , , , , , , , , , | Comments Off on Windows Installer Cheatsheet – Install Hundreds of Programs Automatically – Silent Installer Flags

MySQL Automatic Install with Salt – Preseed Database Root Password

MySQL is probably the most popular multi-user database in the world*. It’s part of the most popular web development stack, LAMP (Linux Apache MySQL PHP). This article shows a Salt state to automatically install MySQL on Ubuntu. As the package … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , | Leave a comment

Shorter Salt Ouput with –state-output terse

To get shorter output when configuring slaves with salt, use $ sudo salt ‘*’ state.highstate –state-output terse If you’re just getting started, you should install salt first. To get even cleaner output, you can get rid of useless warning.

Posted in Uncategorized | Tagged , , , , , , | Leave a comment

Apache User Homepages Automatically – Salt Package-File-Service Example

These are example daemon configuration files for salt. Package-file-service is the most common way to configure daemons. If you’re new, start with salt master-slave installation and a commented example of SSH Server install.

Posted in Uncategorized | Tagged , , , , , , , , , , , , , | Leave a comment