Make args for conf, mons, osds and keys wrappers optional

By making args optional we can include it in the manifest and
provide args from hieradata. Otherwise we're forced to pass a
value from args from the manifests.

Change-Id: I3932026dc6b21f57a9175239a2afe1cdcab611bb
This commit is contained in:
Giulio Fidente 2015-08-05 20:40:00 +02:00
parent 79fd0d9aeb
commit 0d7fb17102
4 changed files with 8 additions and 8 deletions

View File

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

View File

@ -22,11 +22,11 @@
# === Parameters:
#
# [*args*] A Ceph keys config hash
# Mandatory.
# Optional.
#
# [*defaults*] A keys config hash
# Optional. Defaults to a empty hash.
#
class ceph::keys($args, $defaults = {}) {
class ceph::keys($args = {}, $defaults = {}) {
create_resources(ceph::key, $args, $defaults)
}

View File

@ -22,11 +22,11 @@
# === Parameters:
#
# [*args*] A Ceph mons config hash
# Mandatory.
# Optional.
#
# [*defaults*] A config hash
# Optional. Defaults to a empty hash
#
class ceph::mons($args, $defaults = {}) {
class ceph::mons($args = {}, $defaults = {}) {
create_resources(ceph::mon, $args, $defaults)
}

View File

@ -22,11 +22,11 @@
# === Parameters:
#
# [*args*] A Ceph osds config hash
# Mandatory.
# Optional.
#
# [*defaults*] A config hash
# Optional. Defaults to a empty hash
#
class ceph::osds($args, $defaults = {}) {
class ceph::osds($args = {}, $defaults = {}) {
create_resources(ceph::osd, $args, $defaults)
}