Puppet Class: nfs::config::rpcbind

Inherits:
nfs::config
Defined in:
manifests/config/rpcbind.pp

Summary

Configure NFSv3 rpcbind

Overview

The rpcbind service/socket is a requirement for NFSv3. The expectation is that the rpcbind service will source rpcbind_config_opt_file somehow to get its options from rpcbind_config_opt_key

Parameters:

  • rpcbind_config_opt_file (Any) (defaults to: $nfs::rpcbind_config_opt_file)

    Path to file sourced by the rpcbind.service

  • rpcbind_config_opt_key (Any) (defaults to: $nfs::rpcbind_config_opt_key)

    String listing the Env Var used by rpcbind.service to set options

  • rpcbind_config_opt_values (Any) (defaults to: $nfs::rpcbind_config_opt_values)

    Array of arguments to set on rpcbind



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'manifests/config/rpcbind.pp', line 17

class nfs::config::rpcbind (
  $rpcbind_config_opt_file = $nfs::rpcbind_config_opt_file,
  $rpcbind_config_opt_key = $nfs::rpcbind_config_opt_key,
  $rpcbind_config_opt_values = $nfs::rpcbind_config_opt_values,
) inherits nfs::config {
  assert_private()

  $template_params = {
    'key'    => $rpcbind_config_opt_key,
    'values' => $rpcbind_config_opt_values,
  }

  file { $rpcbind_config_opt_file:
    ensure  => 'present',
    owner   => 'root',
    group   => 'root',
    mode    => '0644',
    content => epp('nfs/etc/sysconfig/rpcbind.epp', $template_params),
  }
}