Puppet Function: debian::codename::le

Defined in:
modules/debian/functions/codename/le.pp
Function type:
Puppet Language

Overview

debian::codename::le(String $codename)Boolean

Examples:

Assuming theses functions are compiled for a host running debian buster then

debian::codename::le('buster') == True
debian::codename::le('stretch') == False
debian::codename::le('bullseye') == True

Parameters:

  • codename (String)

    the codename you want to test against

Returns:

  • (Boolean)

    result of the comparison



8
9
10
11
12
# File 'modules/debian/functions/codename/le.pp', line 8

function debian::codename::le (
    String $codename,
) >> Boolean {
    debian::codename::compare($codename, '<=')
}