A collection of useful composite datatypes to use as validators

Vox Pupuli



5,694 latest version

4.5 quality score

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

Start using this module


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


: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/


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


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


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