Puppet Class: nfs::client::debian::service

Defined in:
manifests/client/debian.pp

Overview



51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'manifests/client/debian.pp', line 51

class nfs::client::debian::service {

  Service{
    require => Class['nfs::client::debian::configure']
  }

    service { "portmap":
      ensure    => running,
      enable    => true,
      hasstatus => false,
    } 

  if $nfs::client::debian::nfs_v4 {
    service {
      'idmapd':
        ensure => running,
        subscribe => Augeas['/etc/idmapd.conf', '/etc/default/nfs-common'],
    }
  } else {
      service {
        'idmapd':
          ensure => stopped,
      }
  }
}