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

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

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

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

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

Provision Multiple Virtual Puppet Slaves with Vagrant

For testing, it’s convenient to provision many virtual slave computers to your master. This Vagrant file installs two virtual computers and automatically configures them as slaves to a puppetmaster in a predefined IP address. Advanced stuff warning: Using this sample … Continue reading

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

Hello CFEngine – CFengine3 on Ubuntu 16.04 Xenial

This article shows you how to install CFEngine 3 on Ubuntu and write a simple “Hello World” program. Modern configuration management systems let your describe your infrastructure as code in an idempotent way. You define the target state of your … Continue reading

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

So Many Slaves: 455 Docker, 100 VirtualBox, 65 physical workstations, 50 VPS

Nikolai has 455 slaves in Docker containers. Joona has 100 slaves in VirtualBox, Joonas and Matilda have 60 slaves, Heikki has 21. This an ongoing competition for the students of my configuration management courses.

Posted in Uncategorized | Tagged , , , , , , | 2 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 – Palvelinten hallinta ict4tn022-1 – 5 op, uusi OPS – loppusyksy 2016

Hallitse palvelimiasi Pupetilla. Pupettia käyttävät esimerkiksi Google, Mozilla ja Wikipedia. Sillä on toteutettu myös US Government Security Baseline hallinnon Linux ja Windows -tietokoneisiin.

Posted in Uncategorized | Tagged , , , , , , , , | 115 Comments

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

Preseed MySQL Server Password with Salt Stack

MySQL is the most popular multi-user database in the world. When you install MySQL Server automatically, you must set database root password without asking user to type it. On Debian and Ubuntu, you can use Preseed to answer installer (apt-get) … Continue reading

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

Salt Master-Minion with Ubuntu 14.04 LTS – Control Your Slaves over the Internet

Would you like to control many computers (slaves, minions) from one master computer? Salt-minions connect to master to retrieve instructions. Slaves then configure themselves to the target state: they install software, make settings and start daemons.

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

Implementing Package-File-Service Pattern as a Salt Stack PyObjects Function

PyObjects renderer allows you to use normal Python functions to repeat actions. In this article, we’ll implement a Package-File-Service pattern as a reusable Python function.

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

Salt Package-File-Service with Pyobjects

When you install Apache, the most popular web server in the world, you want to show web pages. In practice, you install the package, keep the service running and modify a configuration file. In configuration management, this is called package-file-service … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , | 7 Comments

Install the Latest Salt Stack on Ubuntu 14.04 LTS

Salt Stack is a configuration management system. It allows you to control a big number of computers easily. To get the latest features, you can install the latest stable Salt Stack on Ubuntu 14.04 LTS.

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

Aikataulu – Linuxin keskitetty hallinta – ict4tn011-8 syksyllä 2015

Hallitse palvelimiasi ja työasemiasi automaattisesti.

Posted in Uncategorized | Tagged , , , , , , , , , , , | 37 Comments

SSH Server Puppet Module for Ubuntu 12.04

Puppet configures and installs daemons easily. OpenSSH server is one of the most popular servers. This article shows an example of Puppet’s package-file-service pattern. A bypass for Ubuntu 12.04 broken init script is offered, making it a breeze to install … Continue reading

Posted in Uncategorized | Tagged , , , , , , , | 2 Comments

Hello Puppet revisited – on Ubuntu 12.04 LTS

Learn “Hello Puppet World” in 5 minutes. Write one-liners & modules. Meet the configuration management system used by Google and Wikipedia.

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

Hello Puppet – on Ubuntu 12.04 LTS

Read new, revisited version of Hello Puppet World. Now with one-liner & module! Old version below. >> Move to new version >>>

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

PuppetMaster on Ubuntu 12.04

Control a whole network of computers from PuppetMaster. Wikipedia uses puppet for servers, Google uses puppet for OSX laptops. With this article, you can use puppet with Ubuntu servers and desktops. Prequisites To follow this article, you should be fluent … Continue reading

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

  • Picks

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