Forge Home

tea

A collection of useful composite datatypes to use as validators

73,464 downloads

10,453 latest version

4.5 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

  • 1.0.1 (latest)
  • 1.0.0
  • 0.2.0
released Oct 14th 2018
This version is compatible with:
  • Puppet Enterprise 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2016.4.x
  • Puppet >= 4.10.0 < 7.0.0
This module has been deprecated by its author since Jun 26th 2023.

Start using this module

Documentation

puppet/tea — version 1.0.1 Oct 14th 2018

Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Reference - An under-the-hood peek at what the module is doing and how
  4. Limitations - OS compatibility, etc.
  5. Development - Guide for contributing to the module

Overview

:tea: Types: Abstracted & Extracted

This module provides a set of Puppet 4.4+ compatible datatypes for use of validation in defined types and class declarations.

Module Description

The basic idea behind this module is to retire puppetlabs-stdlib's validate_XYZ() functions. Unlike validate_(), these datatypes can be verified by the parser, instead of being validated during compilation.

Installing this module will make it so that puppet auto-loads all types defined in types/

Reference

Network related types

  • type HTTPUrl -- matches http/https URLs
  • type HTTPSUrl -- matches https URLs
  • type Port -- all valid TCP/UDP ports
  • type Privilegedport -- ports which need rootly power to bind to
  • type Unprivilegedport -- ports which do not need rootly power

Filesystem types

  • type UnixPath -- paths on Unix-like operating systems

Other types

  • type AWSRegion -- valid AWS region name (eg 'us-east-1')
  • type EmailAddress -- somewhat naive email validator
  • type Syslogfacility -- valid syslog facilities: see man syslog(3) for a complete list
  • type Syslogpriority -- valid syslog priorities: see man syslog(3) for a complete list

Limitations

This module is compatible with any platform puppet 4.4+ is compatible with.

Development

Please see CONTRIBUTING.md for how this module is developed, and how you can help.