Puppet Class: nfs::server::debian

Defined in:
manifests/server/debian.pp

Overview

Debian specifix stuff

Parameters:

  • nfs_v4 (Any) (defaults to: false)
  • nfs_v4_idmap_domain (Any) (defaults to: undef)


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
# File 'manifests/server/debian.pp', line 2

class nfs::server::debian(
  $nfs_v4 = false,
  $nfs_v4_idmap_domain = undef
) {

  class{ 'nfs::client::debian':
    nfs_v4              => $nfs_v4,
    nfs_v4_idmap_domain => $nfs_v4_idmap_domain,
  }

  package { 'nfs-kernel-server':
      ensure => 'installed',
  }

  if nfs::server::debian::nfs_v4 == true {
    service {
      'nfs-kernel-server':
        ensure    => running,
        subscribe => [
          Concat['/etc/exports'],
          Augeas['/etc/idmapd.conf', '/etc/default/nfs-common']
          ],
    }
  } else {
    service {
    'nfs-kernel-server':
      ensure    => running,
      subscribe => Concat['/etc/exports'],
    }
  }
}