Using systemd it's rather simple to set specific environment variables for a specific application. In this example ill set a http(s) and noproxy settings for docker.
First we create systemd drop-in directory for the docker service:
sudo mkdir /etc/systemd/system/docker.service.d
Add file called /etc/systemd/system/docker.service.d/http-proxy.conf that includes the HTTP_PROXY environment variable:
[Service]
Environment="HTTP_PROXY=http://proxy.internal:3128/"
Environment="HTTPS_PROXY=http://proxy.internal:3128/"
Environment="NO_PROXY=localhost,127.0.0.1/8"
Reload the daemon
$ su...
OS
Selenium python bindings on Centos 7
Satellite 6: Sync Katello repos with Pulp repos
When you skip,unlock or delete a task in katello that caused a repository to be deleted or not created in pulp we get various strange behavior between the 2 sub systems of satellite 6. This mostly comes up when you are upgrading to a later version and is very difficult to debug. Mostly this shows a 404 Resource Not Found.
(more…)
Poormans Dedupe
Fancy file systems as ZFS or WAFL have dedupe options to reduce the diskspace of recurring files. These file systems look at each file and only keep one copy of the same file if the file is present in multiple folders. Most of these file systems keep huge tables in memory to speed up this process. (more…)
YUM: Find in which yum group a package belongs
I was looking for a way to identify in which yum package group a specific package belongs. This helps me filter out the less useful packages on Satellite 6 content views. This is a more simple method then I would like and doesn't work from inside a script but it does what it should
yum groupinfo '*' | less +/package