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 , , , , , , , , , , , , , , , , , , , , , , , | Leave a comment

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

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

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 , , , , , , , , , , , , , | Leave a comment

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 , , , , , , , , , , , | Leave a comment

Run Salt SLS File Locally – sudo salt-call –local state.apply foo

What if I just want to run a single SLS file (salt state) once? Save your state to /srv/salt/foo.sls and apply it $ sudo salt-call –local state.apply foo This masterless setup is just for quick testing. In production, you would use … Continue reading

Posted in Uncategorized | Tagged , , , , , , | Leave a 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 , , , , , , , , , , , , , , | Leave a comment

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

Message of the Day on Ubuntu – sudoedit /etc/motd; chmod ugo-x /etc/update-motd.d/*

Message of the Day (motd) is displayed when you log in with ssh. You can use plain text message of the day in /etc/motd also in Ubuntu. Disable scripts in /etc/update-motd.d/ to get rid of extra stuff. When automatically configuring … Continue reading

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

200 Lines of Code Saves 20 000 EUR

My student Joram Puumala wrote a program to automatically configure routers. The CEO of NDC Networks, Markus Ahonen: “NDC is expecting to deliver over 5000 routers during 2018, so the calculable savings in direct effort are significant. Especially as handling … Continue reading

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

Configuration Management Course Awards 2017: Most slaves: Tommi, most OSes: Matias

Tommi Timonen had the most slaves, a total of 1478 computers. He had 20 physical computers running many virtual computers each. Congratulations Tommi! Tommi also took second place with his previous setup of 639 computers. Third place was Tatu Erkinjuntti … Continue reading

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

Top Configuration Management Systems – Puppet vs Salt vs Ansible vs Chef

The leading configuration management systems compared: Puppet, Chef, Ansible, Salt. My students Joona, Jori, Eero and Jarkko gave a presentation and demonstrated each system. ArcticCM provisioned and configured a couple of Linux desktops and servers, and also configured some Windows … Continue reading

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

Multiple Virtual Computers in Minutes – Vagrant Multimachine

You can install multiple virtual computers in minutes. This example shows how to install two Ubuntu 16.04 virtual machines and configure SSH – in a couple minutes.

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

Aikataulu – Linuxin keskitetty hallinta – 3 op, vanha OPS – loppusyksy 2017 p5 – Puppet

Control 10 computers. Or 100. Or 1000. Use Puppet, the tool used by US Gov (security baseline), Mozilla, Google (laptops and desktops) and Wikipedia. Just write what you want (idempotency). Control almost everything with one system (single source of truth). … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , | 44 Comments

Apply Puppet Resources Top Down – ordering=manifest – Order without Require

By default Puppet manifest ordering is arbitrary. You either have to use require a lot or apply your modules twice. But there is an easy fix: $ sudoedit /etc/puppet.conf [main] ordering = manifest # …

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

Aikataulu – Palvelinten hallinta ict4tn022-3 – 5 op, uusi OPS – loppusyksy 2017 p5

Control 10 computers. Or 100. Or 1000. Use Puppet, the tool used by US Gov (security baseline), Mozilla, Google (laptops and desktops) and Wikipedia. Just write what you want (idempotency). Control almost everything with one system (single source of truth). … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , , , , , , , | 119 Comments

Teaching Puppet Configuration Management in The National Library of Finland

I’m very happy to get a change to talk about Puppet in the National Library of Finland. Working with experienced professionals makes an interesting day. I have used their Finto ontology to create one of the largest free Finnish-English dictonaries … Continue reading

Posted in Uncategorized | Tagged , , , , , , , | 3 Comments

Firefox System Wide Settings – /etc/firefox/syspref.js

Firefox preferences for all users are in /etc/firefox/syspref.js. You can copy settings from your current user preferences.

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

Aikataulu – Linuxin keskitetty hallinta – ict4tn011-9 – loppukevät 2016

Hallitse palvelimiasi ja työasemiasi Pupetilla. Kuvaile tavoitetila, ja anna Pupetin tehdä tarvittavat säädöt ja asetukset. Pupettia käyttävät mm. Google, Mozilla ja Wikipedia. USA:n valtio suojaa Windows- ja Linux-työasemansa Pupetilla (US Government Security Baseline).

Posted in Uncategorized | Tagged , , , , , , , , , , , | 20 Comments
  • Recent Posts

  • Picks

  • Boxing Clock for AndroidOcton8 Diving T-ShirtsShaking Tower Panda Android GameLearn Chinese with Android
  • Student projects