Name: puppet-yum
Owner: CERIT Scientific Cloud
Description: Puppet module for Yum
Created: 2013-01-16 16:31:32.0
Updated: 2017-06-13 10:26:05.0
Pushed: 2016-10-11 14:17:49.0
Homepage: null
Size: 61
Language: Puppet
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This module provides helpful definitions for dealing with yum.
Module has been tested on:
Manage main Yum configuration.
s { 'yum':
epcache => false|true,
buglevel => number,
actarch => false|true,
soletes => false|true,
gcheck => false|true,
stallonly_limit => number,
ep_kernel_devel => false|true,
If installonly_limit
is changed, purging of old kernel packages is triggered.
Manage yum.conf.
:config { 'installonly_limit':
sure => 2,
:config { 'debuglevel':
sure => absent,
Import/remove GPG RPM signing key.
Key defined in recipe (inline):
:gpgkey { '/etc/pki/rpm-gpg/RPM-GPG-KEY-puppet-smoketest1':
sure => present,
ntent => '-----BEGIN PGP PUBLIC KEY BLOCK-----
-END PGP PUBLIC KEY BLOCK-----',
Key stored on Puppet fileserver:
:gpgkey { '/etc/pki/rpm-gpg/RPM-GPG-KEY-elrepo.org':
sure => present,
urce => 'puppet:///modules/elrepo/RPM-GPG-KEY-elrepo.org',
Install or remove yum plugin:
:plugin { 'versionlock':
sure => present,
Locks explicitly specified packages from updates. Package name must
be precisely specified in format EPOCH:NAME-VERSION-RELEASE.ARCH
.
Wild card in package name is allowed or automatically appended,
but be careful and always first check on target machine if your
package is matched correctly! Following definitions create same
configuration lines:
:versionlock { '0:bash-4.1.2-9.el6_2.*':
sure => present,
:versionlock { '0:bash-4.1.2-9.el6_2.':
sure => present,
Correct name for installed package can be easily get by running e.g.:
m -q bash --qf '%|EPOCH?{%{EPOCH}}:{0}|:%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n'
sh-4.2.45-5.el7_0.4.x86_64
Install or remove yum package group:
:group { 'X Window System':
sure => present,
meout => 600,
Install or remove packages via yum install subcommand:
From URL:
:install { 'package-name':
sure => present,
urce => 'http://path/to/package/filename.rpm',
From local filesystem:
:install { 'package-name':
sure => present,
urce => '/path/to/package/filename.rpm',
Please note that resource name must be same as installed package name.
CERIT Scientific Cloud, support@cerit-sc.cz