From f0486bf8fcb1d899bc17c62de0422621dc08c6cb Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Sun, 23 Jul 2023 02:33:20 +0900 Subject: [PATCH] Validate input of ceph::conf This introduces the basic validation of ceph::conf class parameters. Change-Id: Icd3e7d75698d380c663c58b5f360c73911497f02 --- manifests/conf.pp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/manifests/conf.pp b/manifests/conf.pp index 684b5e0d..74d75b8e 100644 --- a/manifests/conf.pp +++ b/manifests/conf.pp @@ -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) }