Commit 0d7fb171 authored by Giulio Fidente's avatar Giulio Fidente

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
parent 79fd0d9a
......@@ -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)
}
......@@ -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)
}
......@@ -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)
}
......@@ -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)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment