-
Archives
- January 2020
- May 2019
- April 2019
- March 2019
- February 2019
- December 2018
- November 2018
- October 2018
- September 2018
- August 2018
- May 2018
- April 2018
- March 2018
- February 2018
- January 2018
- December 2017
- November 2017
- October 2017
- September 2017
- August 2017
- June 2017
- May 2017
- April 2017
- March 2017
- February 2017
- January 2017
- December 2016
- November 2016
- October 2016
- September 2016
- August 2016
- July 2016
- June 2016
- May 2016
- March 2016
- February 2016
- January 2016
- December 2015
- November 2015
- October 2015
- September 2015
- August 2015
- September 2014
- August 2014
- June 2014
- March 2014
- February 2014
- January 2014
- December 2013
- November 2013
- October 2013
- September 2013
- August 2013
- May 2013
- April 2013
- March 2013
- February 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- November 2010
- October 2010
- September 2010
- August 2010
- April 2010
- February 2010
- December 2009
- November 2009
- August 2009
- May 2009
- January 2009
- December 2008
- October 2008
- September 2008
- August 2008
- July 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- April 2006
- March 2006
- January 2006
- December 2005
- November 2005
- October 2005
- April 2004
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 code generation, configuration management, for, for-each, for-in, jinja, jinja2, loop, multiple files, muotti, salt, saltstack, silmukka, template, variable
Comments Off on Make a Million of Those – Jinja Templating Salt States
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 configuration management, database, mysql, preseed, root, salasana, salt, saltstack, tietokanta, ubuntu
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 deactivate, locked, open, salt, saltstack, screen, screensaver, short, unlock
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 configuration management, conviniency, DevOps, salt, Salt Stack, short, tip
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 apache, apache2, configuration management, configuration management system, daemon, examples, In English, linux, Linux Basics, package-file-service, pkg-file-service, salt, Salt Stack, server
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 configuration management, DevOps, idempotent, linux, OpenSSH, openssh-server, package-file-server, pkg-file-service, salt, server, ssh, sshd, tutorial, watch
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 annoyance, bugfix, configuration, configuration management, fix, salt, Salt Stack, salt-master, saltstack, short, simple, warning
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
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 configuration management, configuration management system, course, DevOps, git, Helsinki, ict4tn022, idempotency, infra as code, infrastructrure as code, keskitetty hallinta, kurssi, linux, Palvelinten hallinta, Pasila, puppet, salt, saltstack, server, single source of thruth, versionable
212 Comments