Puppet Plan: complyadm::preflight::architecture
- Defined in:
- plans/preflight/architecture.pp
Overview
Validates that the provided infrastructure setup is supported
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'plans/preflight/architecture.pp', line 8
plan complyadm::preflight::architecture (
Complyadm::Config $config = complyadm::config()
) {
$hosts = $config['all_targets']
if ($hosts.length == 1) {
$result = {
'passed' => ['Infrastructure setup is supported'],
'failed' => [],
}
} else {
$result = {
'passed' => [],
'failed' => ["Expected all target hosts to be the same but got ${hosts.join(', ')}"],
}
}
return $result
}
|