Validate input of ceph::conf

This introduces the basic validation of ceph::conf class parameters.

Change-Id: Icd3e7d75698d380c663c58b5f360c73911497f02
This commit is contained in:
Takashi Kajinami 2023-07-23 02:33:20 +09:00
parent 8bc67e20e7
commit f0486bf8fc
1 changed files with 6 additions and 3 deletions

View File

@ -22,11 +22,14 @@
# === Parameters:
#
# [*args*] A Ceph config hash.
# Optional.
# Optional. Defaults to an empty hash
#
# [*defaults*] A config hash
# Optional. Defaults to a empty hash
# Optional. Defaults to an empty hash
#
class ceph::conf($args = {}, $defaults = {}) {
class ceph::conf(
Hash $args = {},
Hash $defaults = {}
) {
ensure_resources(ceph_config, $args, $defaults)
}