local_yum_repo
Mirror selected rpm packages from configured yum repositories to a local repository
Version information
released Nov 3rd 2015
This version is compatible with:
- Puppet Enterprise >=2015.2.0
- Puppet >=4.2.1
- , , ,
Start using this module
Add this module to your Puppetfile:
mod 'tse-local_yum_repo', '0.2.0'
Learn more about managing modules with a PuppetfileDocumentation
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',
}
Dependencies
- puppetlabs/stdlib (>=4.6.0)