Code Monkey home page Code Monkey logo

puppet-yumrepos's Introduction

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 5 (yumrepos::drush5)
  • Drupal Drush 6 (yumrepos::drush6)
  • EPEL (yumrepos::epel)
  • IUS Community and optionally IUS Community Archive (yumrepos::ius)
  • Jenkins (yumrepos::jenkins)
  • Jpackage (yumrepos::jpackage)
  • Percona (yumrepos::percona)
  • PuppetLabs (yumrepos::puppetlabs)
  • RepoForge (yumrepos::repoforge)
  • Varnish 3 (yumrepos::varnish3)
  • 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.

puppet-yumrepos's People

Contributors

jeffsheltren avatar telegrapher avatar rfay avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.