File: ganesha.pp

package info (click to toggle)
puppet-module-manila 25.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,804 kB
  • sloc: ruby: 4,767; python: 38; makefile: 10; sh: 10
file content (52 lines) | stat: -rw-r--r-- 1,804 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#
# == 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 $facts['os_service_default']
#
# [*ganesha_config_path*]
#   (optional) Path to main Ganesha config file.
#   Defaults to $facts['os_service_default']
#
# [*ganesha_service_name*]
#   (optional) Name of the ganesha nfs service.
#   Defaults to $facts['os_service_default']
#
# [*ganesha_db_path*]
#   (optional) Location of Ganesha database file (Ganesha module only).
#   Defaults to $facts['os_service_default']
#
# [*ganesha_export_dir*]
#   (optional) Path to directory containing Ganesha export configuration.
#   (Ganesha module only.)
#   Defaults to $facts['os_service_default']
#
# [*ganesha_export_template_dir*]
#   (optional) Path to directory containing Ganesha export block templates.
#   (Ganesha module only.)
#   Defaults to $facts['os_service_default']
#
class manila::ganesha (
  $ganesha_config_dir          = $facts['os_service_default'],
  $ganesha_config_path         = $facts['os_service_default'],
  $ganesha_service_name        = $facts['os_service_default'],
  $ganesha_db_path             = $facts['os_service_default'],
  $ganesha_export_dir          = $facts['os_service_default'],
  $ganesha_export_template_dir = $facts['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,
  }
}