Enable Foreman Ansible Plugin

When I setup Foreman (Satellite) server, I didn’t have Ansible support enabled. Here is how it can be done later on. If we only need Ansible support, it’s sufficient to just run this command: # foreman-installer \ --enable-foreman-plugin-ansible \ --enable-foreman-proxy-plugin-ansible Just a note for myself, I also need Remote Execution enabled if I want to run Ansible playbooks as Job Templates. # foreman-installer \ --enable-foreman-plugin-remote-execution \ --enable-foreman-proxy-plugin-remote-execution-ssh Note that the remote execution feature is enabled by default on Foreman/Satellite server....

March 6, 2021 · 1 min · 102 words · kenno

Learn to Create an RPM Package

The steps to build an RPM package: Download the source code Create the spec file (use the rpmdev-newspec command) Build the package (use the rpmbuild command) GPG sign the package (use the rpmsign command) Test the package (use rpm -qip command) In this post, I’m going to learn to create an RPM package of fpaste-4.0.1.1.tar.gz on Red Hat Enterprise Linux 7 (variant). First we need to ensure the necessary packages are installed:...

March 5, 2021 · 6 min · 1114 words · kenno

Installing Xcode Command Line Tools

I need to use git on command line on macOS 11 (Big Sur), and git comes with command line developer tools. Here is how it can be done on macOS: ❯ xcode-select --install xcode-select: note: install requested for command line developer tools On a side note, I notice that every time there is an update to Big Sur, I also have to re-install this Xcode Command Line Tools. Ref: kamermanpr/install-xcodeCLT-homebrew-git.md

February 25, 2021 · 1 min · 70 words · kenno

Setup Proxy for Yum Repository

One of my Red Hat servers is behind proxy with no access to the outside world. This box is registered to a Satellite server to receive software updates. I want to install Zabbix server on this server using the packages from Zabbix upstream directly. To do this, I need to set the proxy for the Zabbix’s repository. There are a few ways to do this. For my purpose, the best place is to set proxy=proxy_server directly in the ....

February 17, 2021 · 1 min · 118 words · kenno

BIOS Firmware for ThinkPad P1 Gen1 1.33

Lenovo released the firmeware v1.33 for ThinkPad P1 Gen1 recently which addressed many CVEs. CHANGES IN THIS RELEASE Version 1.33 [Important updates] - Update includes a security fix. - Addresses CVE-2020-0587, CVE-2020-0588, CVE-2020-0590, CVE-2020-0591, CVE-2020-0592, and CVE-2020-0593. (https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-0587) (https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-0588) (https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-0590) (https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-0591) (https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-0592) (https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-0593) [New functions or enhancements] - Updated the Diagnostics module to version 04.15.000. [Problem fixes] - Nothing It’s worth noting that this 1.33 version is not yet available via fwupdmgr....

January 9, 2021 · 1 min · 131 words · kenno

Create a Client Certificate Key for CockroachDB

CockroachDB has been on my to-check-out list for a very long time. So during this break, I want to spend sometimes to get familiar with it. Who know, maybe it be also be used at work. I’m checking it out their Rust sample program. In that program, the user’s credential used to connect to the database is done with certificate. So, I need to know how to do generate a user (or also known as client) certificate and key....

December 28, 2020 · 1 min · 196 words · kenno

Build Hugo Extended for Linux ARM

As of today, there is no official build for Hugo extended for Linux ARM. Therefore, we need to build it ourselves. Prerequisite: build-essential package go1.15.3.linux-arm64 compiler export VERSION=0.79.1 curl -O -L https://github.com/gohugoio/hugo/archive/v$VERSION.tar.gz tar -xzf v$VERSION.tar.gz cd hugo-$VERSION go build --tags extended sudo cp hugo /usr/local/bin Hugo Static Site Generator v0.79.1/extended linux/arm64 BuildDate: unknown I built Hugo on Odroid C2, and it took over 10 minutes. I think a better way is to cross build Hugo on an x64 machine; but I haven’t tried it yet....

December 27, 2020 · 1 min · 94 words · kenno

Upgrading oVirt Manager

This upgrade applies to the self-hosted engine of oVirt Manager. We need to first put the oVirt environment to the global maintenance mode. [root@trex ~]# hosted-engine --set-maintenance --mode=global To check the availability of oVirt Manager, run engine-upgrade-check command on the oVirt Manager machine. [root@ovirtm ~]# engine-upgrade-check ...omitted... VERB: Queue package ovirt-engine-setup for update VERB: Building transaction VERB: Transaction built VERB: Transaction Summary: VERB: install : ovirt-engine-setup-plugin-cinderlib-4.4.4.5-1.el8.noarch VERB: install : ovirt-engine-setup-base-4.4.4.5-1.el8.noarch VERB: install : ovirt-engine-setup-4....

December 26, 2020 · 5 min · 867 words · kenno

Configure oVirt Manager to Authenticate Against FreeIPA

This is quick note on how to configure an oVirt Manager or RHV Manager to use the FreeIPA to provide user external authentication. Here’s my servers’ information: IPA server: ipa.angkorian.io (CentOS 8.3.2011) oVirt Hosted-Engine: ovirtm.angkorian.io (CentOS 8.3.2011) IPA user: ovirtadmin First, open SSH connection to ovirtm as root and ensure that ovirt-engine-extension-aaa-ldap-setup package is installed. Here is a tip to figure out the name of this package - I’d search for ovirt*ldap....

December 26, 2020 · 4 min · 760 words · kenno

Backing Up a Self Hosted Engine Ovirt

We can create a fullback of oVirt engine without stopping the oVirt infrastructure using the ovirt-backup command. To do this, ssh to the oVirt hosted-engine and specify this backup scope, the name of backup file and the name of the log file. [root@ovirtm ~]# engine-backup --scope=all --mode=backup --file=ovirtm-backup_20201223.tgz --log=backup_20201223.log Start of engine-backup with mode 'backup' scope: all archive file: ovirtm-backup_20201223.tgz log file: backup_20201223.log Backing up: Notifying engine - Files - Engine database 'engine' - DWH database 'ovirt_engine_history' Packing into file 'ovirtm-backup_20201223....

December 23, 2020 · 1 min · 103 words · kenno