centosrepos

Module for using CentOS repos

talamoig

talamoig

8,073 downloads

8,073 latest version

4.2 quality score

Version information

  • 0.1.0 (latest)
released Apr 10th 2015
This version is compatible with:
  • RedHat

Start using this module

Documentation

talamoig/centosrepos — version 0.1.0 Apr 10th 2015

Puppet centosrepos module

Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with centosrepos

Overview

Puppet module to include the CentOS repository.

This module will tipically not be used in a CentOS system, but in any other RedHat-based system.

Module Description

That is a very simple module. It creates a standard /etc/yum.repos/CentOS-base.repo file, with each section enabled/disabled according to the parameters passed to the class. By default all the CentOS repos will be disabled.

Setup

What centosrepos affects

  • It creates the /etc/yum.repos/CentOS-base.repo file.

Beginning with centosrepos

To create the CentOS repositories but will all repositories disabled do:

class {'centosrepos':}

To enable only the base repo:

class {'centosrepos':
    enable_base => true
}

To enable base and extras:

class {'centosrepos':
    enable_base   => true,
    enable_extras => true,
}

The list of available CentOS repositories is:

  • base
  • updates
  • extras
  • plus
  • contrib