Skip to main content

yum.repo

Description

Yum repository resource

Init

yum.repo(id string)

Fields

IDTYPEDESCRIPTION
idstringRepository ID
namestringHuman-readable repository name
statusstringRepository status
baseurl[]stringURL where the repodata directory of a repository is located
expirestringIndicator when the repository will expire
filenamestringDeprecated; use file.path
filefileRepository configuration file path
revisionstringRepository revision
pkgsstringPackages in repository
sizestringFile size of this repository
mirrorsstringMirrors for this repository
enabledboolWhether the repository is used as package source

Examples

Check if a yum repo is enabled

yum.repo('salt-latest') {
enabled
}