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:
parent
79fd0d9aeb
commit
0d7fb17102
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user