Forge Home

zypprepo

A Puppet description of a zypper repository

2,319,053 downloads

9,361 latest version

4.7 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

  • 5.0.0 (latest)
  • 4.0.1
  • 4.0.0
  • 3.1.0
  • 3.0.0
  • 2.2.2
  • 2.2.1
  • 2.2.0
  • 2.1.0
  • 2.0.0
released Aug 21st 2023
This version is compatible with:
  • Puppet Enterprise 2023.8.x, 2023.7.x, 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x
  • Puppet >= 7.0.0 < 9.0.0
  • ,

Start using this module

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

Add this module to your Puppetfile:

mod 'puppet-zypprepo', '5.0.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add puppet-zypprepo
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install puppet-zypprepo --version 5.0.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

puppet/zypprepo — version 5.0.0 Aug 21st 2023

puppet-zypprepo

License Build Status Puppet Forge Puppet Forge - downloads Puppet Forge - endorsement Puppet Forge - scores

Overview

'zypprepo' - The client-side description of a zypper repository.

Usage

Version 3.1.0 introduced a rewrite of the zypprepo type and added a full functional provider based on puppetlabs-yumrepo_core. The type is now ensurable. To keep previous behavior, it defaults to present, which makes the ensure parameter optional

zypprepo { 'openSUSE_12.1':
  ensure        => present,
  baseurl       => 'http://download.opensuse.org/distribution/12.1/repo/oss/suse/',
  enabled       => 1,
  autorefresh   => 1,
  name          => 'openSUSE_12.1',
  gpgcheck      => 1,
  repo_gpgcheck => 1,
  pkg_gpgcheck  => 1,
  priority      => 98,
  keeppackages  => 1,
  type          => 'rpm-md',
}

Lock a package with the versionlock plugin

Locks explicitly specified packages from updates. Package name must be precisely specified in format NAME-VERSION-RELEASE.ARCH. Wild card in package name is allowed provided it does not span a field seperator.

PLEASE NOTE: Once you define a lock in code, all locks must be defined in code.

zypprepo::versionlock { 'bash-4.1.2-9.sles12.*': }

Use the following command to retrieve a properly-formated string:

PACKAGE_NAME='bash'
rpm -q "$PACKAGE_NAME" --qf '%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n'

This Puppet 'type' is a port of the 'yumrepo' type from 2.7 code base and is licensed under the Apache-2.0.