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

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

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 , , , , , , , , , , | Comments Off on Preseed MySQL Server Password with Salt Stack

Free SSL Certs, 50 Salt Slaves, 5 USD Raspberry Pi, Free Home Automation

Get free SSL cert for your business. Deploy and configure 50 servers to DigitalOcean. Buy RaspBerry Pi Zero for 5 USD (*actual price may vary). Automate your home. Read Ashkan’s thesis while he writes it.

Posted in Uncategorized | Tagged , , , , , , , , , , , , , , , , , , , , , , , | Comments Off on Free SSL Certs, 50 Salt Slaves, 5 USD Raspberry Pi, Free Home Automation

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 , , , , , , , , , , , , , , , , | Comments Off on Salt Master-Minion with Ubuntu 14.04 LTS – Control Your Slaves over the Internet

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 , , , , , , , , | Comments Off on Implementing Package-File-Service Pattern as a Salt Stack PyObjects Function

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 , , , , , , , , , , | Comments Off on Install the Latest Salt Stack on Ubuntu 14.04 LTS