Puppet Function: cephadm::ssh_keys
- Defined in:
- modules/cephadm/functions/ssh_keys.pp
- Function type:
- Puppet Language
Overview
SPDX-License-Identifier: Apache-2.0
2 3 4 5 6 7 8 9 10 11 12 13 |
# File 'modules/cephadm/functions/ssh_keys.pp', line 2
function cephadm::ssh_keys (
Stdlib::Host $cephadm_controller,
) >> String[1] {
$pql = @("PQL")
inventory[facts.cephadm.ssh.key] {
certname = "${cephadm_controller}"
}
| PQL
wmflib::puppetdb_query($pql).reduce('') |$memo, $res| {
"${memo}${res['facts.cephadm.ssh.key']}\n"
}
}
|