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

Defined in:
manifests/client/debian.pp

Overview



45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# File 'manifests/client/debian.pp', line 45

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,
      }
  }
}