puppet-manila/manifests/ganesha.pp
Takashi Kajinami 95dba69923 Add support for Ganesha options
Some share drivers like CephFS uses nfs-ganesha to provide NFS
interface. This change introduces a new resource type so that users
can set additional parameters for nfs-ganesha usage for some share
drivers.

Change-Id: Ie2e2d93176da896da77d777f9cf1e692247e4d7f
2021-05-09 02:07:40 +09:00

53 lines
1.7 KiB
Puppet

#
# == Class: manila::ganesha
#
# Class to set NFS Ganesha options for share drivers
#
# === Parameters
# [*ganesha_config_dir*]
# (optional) Directory where Ganesha config files are stored.
# Defaults to $::os_service_default
#
# [*ganesha_config_path*]
# (optional) Path to main Ganesha config file.
# Defaults to $::os_service_default
#
# [*ganesha_service_name*]
# (optional) Name of the ganesha nfs service.
# Defaults to $::os_service_default
#
# [*ganesha_db_path*]
# (optional) Location of Ganesha database file (Ganesha module only).
# Defaults to $::os_service_default
#
# [*ganesha_export_dir*]
# (optional) Path to directory containing Ganesha export configuration.
# (Ganesha module only.)
# Defaults to $::os_service_default
#
# [*ganesha_export_template_dir*]
# (optional) Path to directory containing Ganesha export block templates.
# (Ganesha module only.)
# Defaults to $::os_service_default
#
class manila::ganesha (
$ganesha_config_dir = $::os_service_default,
$ganesha_config_path = $::os_service_default,
$ganesha_service_name = $::os_service_default,
$ganesha_db_path = $::os_service_default,
$ganesha_export_dir = $::os_service_default,
$ganesha_export_template_dir = $::os_service_default,
) {
include manila::deps
manila::backend::ganesha { 'DEFAULT':
ganesha_config_dir => $ganesha_config_dir,
ganesha_config_path => $ganesha_config_path,
ganesha_service_name => $ganesha_service_name,
ganesha_db_path => $ganesha_db_path,
ganesha_export_dir => $ganesha_export_dir,
ganesha_export_template_dir => $ganesha_export_template_dir,
}
}