Puppet Function: ceph::auth::get_keyring_path

Defined in:
modules/ceph/functions/auth/get_keyring_path.pp
Function type:
Puppet Language

Overview

ceph::auth::get_keyring_path(String[1] $client_name, Optional[Stdlib::AbsolutePath] $keyring_path = undef)Stdlib::Unixpath

Parameters:

  • client_name (String[1])
  • keyring_path (Optional[Stdlib::AbsolutePath]) (defaults to: undef)

Returns:

  • (Stdlib::Unixpath)


1
2
3
4
5
6
7
8
9
# File 'modules/ceph/functions/auth/get_keyring_path.pp', line 1

function ceph::auth::get_keyring_path (
    String[1]                      $client_name,
    Optional[Stdlib::AbsolutePath] $keyring_path = undef,
) >> Stdlib::Unixpath {
    $keyring_path ? {
        undef   => "/etc/ceph/ceph.${client_name}.keyring",
        default => $keyring_path,
    }
}