Skip to content

frodaviz/puppet-module-yumwrapper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

This is a wrapper around the package provider, that gives an example of how to emulate additional switches and manually pass them to yum.

Installation

Copy this entire directory as is into:

/etc/puppetlabs/puppet/modules/yumwrapper

This could be a module of course, but as this is more of an example I haven't bothered this time.

Usage

To install a package normally:

yumwrapper { 'lynx':
  ensure => 'installed',
}

To install a package with a custom enable repo:

yumwrapper { 'lynx':
  ensure => 'installed',
  enablerepo => 'epel',
}

To install a package with a custom enable repo and install repo:

yumwrapper { 'zabbix-server-pgsql.x86_64':
  ensure     => 'installed',
  enablerepo => 'zabbixzone',
  urlrepokey => 'http://repo.zabbixzone.com/centos/RPM-GPG-KEY-zabbixzone',
  urlrepo    => 'http://repo.zabbixzone.com/centos/zabbixzone-release-0.0-1.noarch.rpm',
}

Uninstall:

yumwrapper { 'lynx':
  ensure => 'absent',
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Puppet 100.0%