Puppet Function: debian::codename::eq

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

Overview

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

Examples:

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

debian::codename::eq('buster') == True
debian::codename::eq('stretch') == False

Parameters:

  • codename (String)

    the codename you want to test against

Returns:

  • (Boolean)

    result of the comparison



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

function debian::codename::eq (
    String $codename,
) >> Boolean {
    debian::codename::compare($codename)
}