RPM-based patching with Pulp

In the previous section of this chapter, we created two repositories for our CentOS 7 build—one for the operating system release and another to contain the updates.

The process of updating a CentOS 7 build from these repositories is, at a high level, done as follows:

  1. Move aside any existing repository definitions in /etc/yum.repos.d to ensure we only load repositories from the Pulp server.
  2. Deploy the appropriate configuration using Ansible.
  3. Employ Ansible to pull the updates (or any required packages) from the Pulp server using the new configuration.

Before we proceed with creating the appropriate playbooks, let's take a look at what the repository definition file would look like on our CentOS 7 machine if we ...

Get Hands-On Enterprise Automation on Linux now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.