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 , , , , , , , , , , , , , , | Comments Off on Make a Million of Those – Jinja Templating Salt States

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 , , , , , , , , , | Comments Off on MySQL Automatic Install with Salt – Preseed Database Root Password

Remotely Unlock Screensaver on Xubuntu Linux – sudo loginctl unlock-sessions

To unlock a locked Xubuntu Linux workstation, you can use ‘sudo loginctl unlock-sessions’ and alt-ctrl-F7. This command works over SSH and over Salt, but obviously it requires root access to target computer.

Posted in Uncategorized | Tagged , , , , , , , , | Comments Off on Remotely Unlock Screensaver on Xubuntu Linux – sudo loginctl unlock-sessions

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 , , , , , , | Comments Off on Shorter Salt Ouput with –state-output terse

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 , , , , , , , , , , , , , | Comments Off on Apache User Homepages Automatically – Salt Package-File-Service Example

Pkg-File-Service – Control Daemons with Salt – Change SSH Server Port

You can control a huge number of daemons with a configuration management system. Package-file-service is the common pattern for this: install the software, replace a configuration file and finally restart the daemon to use the new configuration. This article shows … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , , | Comments Off on Pkg-File-Service – Control Daemons with Salt – Change SSH Server Port

Quick Fix for Useless Salt Warning – Add "file_ignore_glob: []" to /etc/salt/master

Some versions of Salt give you a useless warning on every run. The problem is easy to fix.

Posted in Uncategorized | Tagged , , , , , , , , , , , | 1 Comment

Salt Quickstart – Salt Stack Master and Slave on Ubuntu Linux

You can control a thousand computers with Salt. And this is how you install Salt. Slaves, the controlled computers, can be anywhere: behind an NAT, behind a firewall, on an unknown address. And still you can control them. Only the … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , , , | Comments Off on Salt Quickstart – Salt Stack Master and Slave on Ubuntu Linux

Aikataulu – Palvelinten hallinta ict4tn022 4-ti 5-ke 5 – loppukevät 2018 5p

Control 10 computers. Or 100. Or 1000. Just write what you want (idempotency). Control almost everything with one system (single source of truth). In plain text (infrastructure as code, versionable). My current research area is configuration management systems: I gave … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , , , , , , , , , | 212 Comments