Red Hat Enterprise Linux

Set application environment variables with systemd

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...

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…)