Puppet Plan: complyadm::preflight::bolt
- Defined in:
- plans/preflight/bolt.pp
Overview
Validates that the installed bolt version is supported
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'plans/preflight/bolt.pp', line 6
plan complyadm::preflight::bolt () {
$min_version = '3.27.2'
$installed_version = complyadm::bolt_version()
if (versioncmp($installed_version, $min_version) < 0) {
$result = {
'passed' => [],
'failed' => ["Found Bolt version ${installed_version} but expected version >= ${min_version}."],
}
} else {
$result = {
'passed' => ["Bolt version ${installed_version} is supported."],
'failed' => [],
}
}
return $result
}
|