1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# File 'modules/ceph/manifests/auth/load_all.pp', line 1
class ceph::auth::load_all (
Ceph::Auth::Conf $configuration,
) {
$configuration.each |String $client_name, Ceph::Auth::ClientAuth $client_auth| {
if ($client_auth['keydata'] == undef) {
notify{"No keydata found for key ${client_name}, skipping.": }
} elsif ($client_auth['caps'] == undef) {
notify{"No caps found for key ${client_name}, skipping.": }
} else {
if ($client_auth['import_to_ceph'] == undef) {
# the default value
$import_to_ceph = true
} else {
$import_to_ceph = $client_auth['import_to_ceph']
}
ceph::auth::keyring { $client_name:
keyring_path => $client_auth['keyring_path'],
keydata => $client_auth['keydata'],
import_to_ceph => $import_to_ceph,
caps => $client_auth['caps'],
}
}
}
}
|