Forge Home

local_yum_repo

Mirror selected rpm packages from configured yum repositories to a local repository

9,513 downloads

9,224 latest version

5.0 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.2.0 (latest)
  • 0.1.0
released Nov 3rd 2015
This version is compatible with:
  • Puppet Enterprise >=2015.2.0
  • Puppet >=4.2.1
  • , , ,

Start using this module

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

Add this module to your Puppetfile:

mod 'tse-local_yum_repo', '0.2.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add tse-local_yum_repo
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install tse-local_yum_repo --version 0.2.0

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

tse/local_yum_repo — version 0.2.0 Nov 3rd 2015

local_yum_repo

Overview

This module provides one public type, local_yum_repo::package, which allows specification of a named package which should be mirrored to a local yum repository to be created in the specified directory. The type allows specification of what architecture to retrieve as well as what releasever.

Usage

Declare the resources needed in your manifest(s). Note that if you would like the module to install the yum-utils and createrepo packages a separate class, local_yum_repo::dependendies will need to be included.

include local_yum_repo::dependencies

local_yum_repo::package { 'ncurses-libs.el6':
  directory    => '/tmp/repo1',
  package_name => 'ncurses-libs',
  releasever   => '6',
  basearch     => 'x86_64',
}

local_yum_repo::package { 'libuuid.el6':
  directory    => '/tmp/repo1',
  package_name => 'libuuid',
  releasever   => '6',
  basearch     => 'x86_64',
}

local_yum_repo::package { 'tomcat6.el6':
  directory    => '/tmp/repo1',
  package_name => 'tomcat6',
  releasever   => '6',
  basearch     => 'x86_64',
}

local_yum_repo::package { 'ncurses-libs.el7':
  directory    => '/tmp/repo2',
  package_name => 'ncurses-libs',
  releasever   => '7',
  basearch     => 'x86_64',
}