Skip to content

Commit

Permalink
Merge pull request #2 from KrisBuytaert/master
Browse files Browse the repository at this point in the history
Got to love NFSv4
  • Loading branch information
arioch committed Jul 31, 2013
2 parents 6f3af51 + 5010d5f commit 62c3fa2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
$service_hasstatus = $::nfs::params::service_hasstatus,
$service_name = $::nfs::params::service_name,
$service_rpc = $::nfs::params::service_rpc,
$service_idmap = $::nfs::params::service_idmap,
) inherits nfs::params {

include nfs::install
Expand Down
2 changes: 2 additions & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
$service_hasstatus = true
$service_name = 'nfs'
$service_rpc = 'rpcbind'
$service_idmap = 'rpcidmapd'
}

'Debian', 'Ubuntu': {
Expand All @@ -38,6 +39,7 @@
$service_hasstatus = true
$service_name = 'nfs-kernel-server'
$service_rpc = 'portmap'
$service_idmap = 'tobeconfigured'
}

default: {
Expand Down
18 changes: 18 additions & 0 deletions manifests/service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,24 @@
hasstatus => $::nfs::service_hasstatus,
require => Service[$::nfs::service_rpc];
}


}
case $::operatingsystem {
centos, redhat: {
service { $::nfs::service_idmap:
ensure => $::nfs::service_ensure,
enable => $::nfs::service_enable,
hasstatus => $::nfs::service_hasstatus;
}
}

debian: {
notify {'rpc.idmapd might need to be configured': }
}
}


}


0 comments on commit 62c3fa2

Please sign in to comment.