Fix "Error: No group data available for configured repositories" in YUM

Sometimes on your RHEL-like system you may encounter the following error:

$ sudo yum grouplist
Loaded plugins: rhnplugin, security
This system is not registered with ULN.
You can use up2date --register to register.
ULN support will be disabled.
Setting up Group Process
Error: No group data available for configured repositories

This …

more ...

Setting console resolution on CentOS 7 with Xen kernel

This one bugged me for a while. Whenever I would reboot my CentOS 7 server with Xen kernel, my console/framebuffer resolution would be terribly low. Since we live in 2016 and have huge monitors, there is no reason to use 800x600 for your screen resolution. Yes, it's nice to …

more ...

Pillars in Salt

At first Pillars were something that I could not wrap my head around due to confusing Salt documentation. Eventually the docs became better and with working in Salt extensively, the pillars finally kicked in. They are something that any experienced Salt user should be using as they open up more …

more ...

Stopping packages from updating on FreeBSD

Recently I encountered a package issue in Bacula-server package on FreeBSD 10. The package from pkg system was compiled to use Postgresql while I still use mysqld (I know, I know, I should migrate to pgsql or at least MariaDB). Of course I can recompile it with the necessary flags …

more ...

Installing SaltStack on Solaris 10

Official Salt docs on installing Salt on Solaris are quite out of date so this article is meant to illustrate how you can install SaltStack minion package on Solaris 10 (x86 and SPARC) hosts. Just like the official docs, we will be using OpenCSW but Salt itself will be installed …

more ...

Managing crons with SaltStack

SaltStack has a pretty cool feature where you can manage your systems' crontabs from a central location. You can keep them in state SLS files and look them up via salt cron exectuion module. With a little bit of extra work, you can also keep the crons in pillars and …

more ...

Multi-master SaltStack setup

Multi-master SaltStack setup is quite easy to build out. There is no need for VIPs or DNS CNAMEs (though they can be implemented) and all of the functionality is handled by Salt.  This greatly simplifies everything and you don't have to rely on external tools.

To have working masters, you …

more ...

Remote logging in Syslog via TCP vs UDP

To setup remote logging to a central Syslog server, you need to add the following line:

*.* @loghost.foobar.com:514

This will set up remote logging using UDP.  Note the single @ sign.  To set up TCP, use double @@ signs:

*.* @@loghost.foobar.com:514

*.* stands for facility.severity.  Asterisks will pick …

more ...

Simple mail relays on FreeBSD

This howto describes how to relay mail (such as system alerts) to email services such as gmail. First part describes doing so using sSMTP which only supports relaying local system mail and the second part shows how to do this using Postfix which is a fully featured MTA. Postfix might …

more ...

It's alive!

Finally restored the website on a new server.  It took me a while to retrieve and restore the hard drive but it's finally done.  Whoopie!

more ...