Forge Home

marktlib

markt.de standard library

308 downloads

189 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.1.1 (latest)
  • 0.1.0
released Jul 30th 2024
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 'markt-marktlib', '0.1.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add markt-marktlib
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install markt-marktlib --version 0.1.1

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

markt/marktlib — version 0.1.1 Jul 30th 2024

Synopsis

marktlib is a collection of usefull Puppet related things (facts, types, type aliases, ...) that markt.de requires for their Puppet modules and which might be useful for other people/purposes/... as well.

Contents

facts

applied_puppet_classes

This fact provides an array of all applied Puppet classes which might be useful for visualization in frontends (Foreman, Puppetboards, ...) or for checking whether a specific class is loaded (without parsing the catalog resources).

lsbdistdesc (Linux)

This is the same as the (deprecated) legacy fact lsbdistdescription (which is useful for graphing in Puppetboard e.g.).

facterver

This takes the default fact facterversion and makes a structured fact out of it, which splits major/minor/patch (useful for configuring hierarchy levels e.g.).

puppetver

This takes the default fact puppetversion and makes a structured fact out of it, which splits major/minor/patch (useful for configuring hierarchy levels e.g.).

type aliases

Marktlib::Duration

Describes the time intervals used in Puppet configuration files (but might be useful elsewhere as this is a fairly common way of declaring durations).

Marktlib::Port

Alternative to Stdlib::Port which permits port 0 ("any port") what we usually don't want.

Marktlib::Portlist

This can be used wherever a nonempty list of marktlib ports is needed.

Marktlib::SoL

This type alias ("string or list of strings") can be used wherever a flexible datatype for a single nonempty string or a nonempty list of nonempty strings is needed (e.g. single or multiple paths, single or multiple packages, ...).

Marktlib::EAoL

This type alias ("email address or list of email addresses") can be used wherever a flexible datatype for an email address or a nonempty list of email addresses is needed.

Development

Development happens on GitHub in the well known way (fork, PR, issue, etc.).

Please feel free to report problems, suggest improvements, drop new ideas or teach us how to handle things better.