Package repositories can be managed with the pkgrepo state:
base:
pkgrepo.managed:
- human_name: CentOS-$releasever - Base
- mirrorlist: http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
- comments:
- #http://mirror.centos.org/centos/$releasever/os/$basearch/
- gpgcheck: 1
- gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
This function deletes the specified repo on the system, if it exists. It is essentially a wrapper around pkg.del_repo.
This function manages the configuration on a system that points to the repositories for the system's package manager.
For yum-based systems, take note of the following configuration values: