Skip to main content

yum.repo

Description

Yum repository resource

Init

yum.repo(id string)

Fields

IDTYPEDESCRIPTION
idstring
namestringhuman-readable repository name
statusstringrepository status
baseurl[]stringURL where the repodata directory of a repository is located
expirestringindicator when the repository will expire
filenamestringDeprecated: location of the repo configuration file, use file.path
filefilefile of the repo configuration file
revisionstringrevision for this repository
pkgsstringpackages in repository
sizestringfile size of this repository
mirrorsstringmirrors for this repository
enabledboolindicates if this repository is used as package source

Examples

Check if a yum repo is enabled

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