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:
- Move aside any existing repository definitions in /etc/yum.repos.d to ensure we only load repositories from the Pulp server.
- Deploy the appropriate configuration using Ansible.
- 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 ...