Forge Home

yumrepos

Yum repo definitions for common repos (RHEL/CentOS).

16,975 downloads

8,073 latest version

1.9 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.7.0 (latest)
  • 0.6.0
  • 0.5.0
  • 0.4.1
  • 0.4.0
  • 0.3.6
  • 0.3.5
  • 0.3.3
  • 0.3.2
  • 0.3.1
  • 0.3.0
released Jun 24th 2014

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'jeffsheltren-yumrepos', '0.3.5'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add jeffsheltren-yumrepos
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install jeffsheltren-yumrepos --version 0.3.5

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download
Tags: rhel, yum, centos, rpm, repos

Documentation

jeffsheltren/yumrepos — version 0.3.5 Jun 24th 2014

yumrepos puppet modules

Yum repo definitions for enterprise linux (RHEL/CentOS) Each repo to manage is handled in its own class.

Currently includes repo definitions for:

  • Drupal Drush 5
  • Drupal Drush 6
  • EPEL
  • IUS Community
  • Jenkins
  • Jpackage
  • Percona
  • PuppetLabs
  • RepoForge
  • Varnish 3

Usage

"include yumrepos::ius"

or

"require => Class['yumrepos::ius']"

or

"class { 'yumrepos::ius': }"

Switching 'ius' with whichever repo you would like to enable for the host.

Optional Parameters

Additional configuration can be made through class parameters. Each yumrepos class accepts multiple parameters to override options such as URL, enabled, package includes/excludes, and enabling of gpg checks. Defaults are defined in params.pp for each repo.

Example:

class { 'yumrepos::epel':
          epel_url => 'http://your.local.mirror.com/epel/',
          epel_exclude => 'some packages to avoid',
          epel_includepkgs => 'comma-separated packages to include',
      }

General Information

RPM GPG keys are installed and enabled for repos where available.

Most settings are in parameters (defaults included via params.pp) so that things can be easily overridden from calling classes, Hiera, etc.

Requirements

Facter 1.7.0+ is required for our use of the operatingsystemmajrelease variable. This can be worked around with older puppet versions by defining a custom fact to strip the point release information from the operatingsystemrelease fact.