From 0f2cf077c3b310804f6ea836c519d406f4c9e364 Mon Sep 17 00:00:00 2001 From: Kris Buytaert Date: Wed, 31 Jul 2013 14:40:00 +0200 Subject: [PATCH] Support for IdMapD --- manifests/init.pp | 1 + manifests/params.pp | 2 ++ manifests/service.pp | 18 ++++++++++++++++++ 3 files changed, 21 insertions(+) diff --git a/manifests/init.pp b/manifests/init.pp index 8e3e480..72f1eb3 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -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 diff --git a/manifests/params.pp b/manifests/params.pp index 8c191ad..954e531 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -21,6 +21,7 @@ $service_hasstatus = true $service_name = 'nfs' $service_rpc = 'rpcbind' + $service_idmap = 'rpcidmapd' } 'Debian', 'Ubuntu': { @@ -38,6 +39,7 @@ $service_hasstatus = true $service_name = 'nfs-kernel-server' $service_rpc = 'portmap' + $service_idmap = 'tobeconfigured' } default: { diff --git a/manifests/service.pp b/manifests/service.pp index dae47ce..a72fa00 100644 --- a/manifests/service.pp +++ b/manifests/service.pp @@ -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': } + } + } + + } +