Forge Home

yumrepos

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

13,845 downloads

5,746 latest version

4.6 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.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 0.9.5 (latest)
  • 0.9.4
  • 0.9.2
  • 0.9.1
  • 0.9.0
released Jan 18th 2019
This version is compatible with:
  • , ,

Start using this module

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

Add this module to your Puppetfile:

mod 'tag1-yumrepos', '0.9.5'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

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

Manually install this module globally with Puppet module tool:

puppet module install tag1-yumrepos --version 0.9.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

Documentation

tag1/yumrepos — version 0.9.5 Jan 18th 2019

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 the following yum repos (class names in parenthesis):

  • Drupal Drush 7 (yumrepos::drush7)
  • Drupal Drush 8 (yumrepos::drush8)
  • Drupal Drush 9 (yumrepos::drush9)
  • Elasticsearch 1.6 (yumrepos::elasticsearch16)
  • ELRepo (yumrepos::elrepo)
  • EPEL (yumrepos::epel)
  • Grafana (yumrepos::grafana)
  • IUS Community and optionally IUS Community Archive and Testing repos (yumrepos::ius)
  • Jenkins (yumrepos::jenkins)
  • Jpackage (yumrepos::jpackage)
  • Logstash 1.4 (yumrepos::logstash14)
  • MariaDB 10 (yumrepos::mariadb10)
  • New Relic (yumrepos::newrelic)
  • Nginx (yumrepos::nginx)
  • Percona (yumrepos::percona)
  • PHP XHProf for IUS PHP 5.6 (yumrepos::phpxhprof)
  • Phusion Passenger (yumrepos::passenger)
  • PuppetLabs (yumrepos::puppetlabs)
  • Remi-safe (yumrepos::remi_safe)
  • RepoForge (yumrepos::repoforge)
  • Varnish 3 (yumrepos::varnish3)
  • Varnish 4.0 (yumrepos::varnish4)
  • Varnish 4.1 (yumrepos::varnish41)
  • Varnish 4.1 modules (yumrepos::varnish_41_modules)
  • Zabbix 2.4 (yumrepos::zabbix24)

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.

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',
      }

Example Using Hiera

This example shows how you can configure the yumrepos classes using Hiera.

Hiera yaml configuration file (common, per-host, or whatever you have setup in your case):

yumrepos::epel::epel_url: 'http://your.local.mirror.com/epel/'
yumrepos::epel::epel_exclude: 'drupal*'

And then the class can be called from your puppet manifests without having to pass any of the parameters:

class { 'yumrepos::epel': }

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.