---
name: "cdist-type__yum_repo"
section: "7"
platform: "linux"
package: "cdist"
version: "7.0.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/cdist-type__yum_repo"
---

# cdist-type\_\_yum\_repo(7)

Manage yum repositories

## NAME

cdist-type\_\_yum\_repo - Manage yum repositories

## DESCRIPTION

For all undocumented parameters see [yum.conf(5)](/yum.conf/5.md).

## REQUIRED PARAMETERS

None.

## OPTIONAL PARAMETERS

- **state**

  'present' or 'absent'. Defaults to 'present'

- **repositoryid**

  Defaults to \_\_object\_id.

name

- **baseurl**

  Can be specified multiple times.

metalink

mirrorlist

- **gpgkey**

  Can be specified multiple times.

gpgcakey

gpgcheck

exclude

includepkgs

failovermethod

timeout

http\_caching

retries

throttle

bandwidth

sslcacert

sslverify

sslclientcert

sslclientkey

ssl\_check\_cert\_permissions

metadata\_expire

mirrorlist\_expire

proxy

proxy\_username

proxy\_password

username

password

cost

## BOOLEAN PARAMETERS

enabled

repo\_gpgcheck

- **disablegroups**

  ! enablegroups

keepalive

skip\_if\_unavailable

## EXAMPLES

```
__yum_repo epel \
   --name 'Extra Packages for Enterprise Linux 6 - $basearch' \
   --mirrorlist 'https://mirrors.fedoraproject.org/metalink?repo=epel-$releasever&arch=$basearch' \
   --failovermethod priority \
   --enabled \
   --gpgcheck 1 \
   --gpgkey https://fedoraproject.org/static/0608B895.txt
```

## AUTHORS

Steven Armstrong \<*steven-cdist--@--armstrong.cc*\>

## COPYING

Copyright (C) 2014 Steven Armstrong. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

## COPYRIGHT

ungleich GmbH 2021
