Puppet Class: profile::wmcs::nfs::server

Defined in:
modules/profile/manifests/wmcs/nfs/server.pp

Overview

Parameters:

  • nfsd_threads (Integer) (defaults to: lookup('profile::wmcs::nfs::server::nfsd_threads'))


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
53
# File 'modules/profile/manifests/wmcs/nfs/server.pp', line 3

class profile::wmcs::nfs::server (
    Integer $nfsd_threads = lookup('profile::wmcs::nfs::server::nfsd_threads'),
) {
    $packages = [
        'lvm2',
        'nethogs',
        'nfs-common',
        'nfs-kernel-server',
        'nfsd-ldap',
        'rpcbind',
    ]

    package { $packages:
        ensure => 'present',
    }

    $ldapincludes = ['openldap', 'nss', 'utils']
    class { 'profile::ldap::client::labs': ldapincludes => $ldapincludes }

    file { '/usr/share/base-files/nsswitch.conf':
        ensure => present,
        owner  => 'root',
        group  => 'root',
        mode   => '0644',
        source => 'puppet:///modules/profile/wmcs/nfs/server/nsswitch.conf',
    }

    file { '/etc/modprobe.d/nfs-lockd.conf':
        ensure  => present,
        owner   => 'root',
        group   => 'root',
        mode    => '0644',
        content => 'options lockd nlm_udpport=32768 nlm_tcpport=32769',
    }

    file { '/etc/default/nfs-common':
        ensure => present,
        owner  => 'root',
        group  => 'root',
        mode   => '0555',
        source => 'puppet:///modules/profile/wmcs/nfs/server/nfs-common',
    }

    file { '/etc/default/nfs-kernel-server':
        ensure  => present,
        owner   => 'root',
        group   => 'root',
        mode    => '0555',
        content => template('profile/wmcs/nfs/server/nfs-kernel-server.erb'),
    }
}