Files
puppet-gnocchi/manifests/storage/incoming/file.pp
Takashi Kajinami a00bfa3642 Add support for the file incoming driver
This change introduces a new gnocchi::storage::incoming::driver class
so that users can configure the file incoming driver of Gnocchi, which
stores incoming data in local (or shared) filesystem.

Change-Id: Ibf79b167a9d193974180949c95557d77ca495499
2021-05-25 08:19:55 +09:00

33 lines
734 B
Puppet

#
# gnocchi::storage::incoming::file
#
# File incoming storage driver for Gnocchi
#
# == Parameters
#
# [*file_basepath*]
# (optional) Path used to store gnocchi data files.
# This parameter can be used only when gnocchi::storage::file is not used.
# Defaults to undef
#
class gnocchi::storage::incoming::file(
$file_basepath = undef,
) {
include gnocchi::deps
# Because the file_basepath parameter is maintained by two classes, here we
# skip the parameter unless a user explicitly requests it, to avoid
# duplicated declaration.
if $file_basepath != undef {
gnocchi_config {
'storage/file_basepath': value => $file_basepath;
}
}
gnocchi_config {
'incoming/driver': value => 'file';
}
}