Puppet Function: debian::codename::require
- Defined in:
- modules/debian/functions/codename/require.pp
- Function type:
- Puppet Language
Summary
fail to compile if the running debian codename against the codename passed using a specific operator.Overview
SPDX-License-Identifier: Apache-2.0
13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'modules/debian/functions/codename/require.pp', line 13
function debian::codename::require (
String $codename,
Enum['==', '>=', '>', '<', '<=', '!='] $operator = '==',
Optional[String] $msg = undef,
) {
unless debian::codename::compare($codename, $operator) {
$_msg = $msg ? {
undef => "node codename does not meet requirement `${debian::codename()} ${operator} ${codename}`",
default => $msg,
}
fail($_msg)
}
}
|