From 9d84089fed64d0ddf128ab88665d73816a04c0e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robbert=20M=C3=BCller?= Date: Sun, 3 May 2015 18:04:15 +0200 Subject: [PATCH 1/2] make the name/ip of the server a config option i needed this to create a seperate storage lan where the $::clientcert was not resolving to the ip on the storagelan --- manifests/server/export.pp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/manifests/server/export.pp b/manifests/server/export.pp index ae4b17f..e7d43c1 100644 --- a/manifests/server/export.pp +++ b/manifests/server/export.pp @@ -11,7 +11,8 @@ $atboot = false, $options = '_netdev', $bindmount = undef, - $nfstag = undef + $nfstag = undef, + $server = $::clientcert ) { @@ -39,7 +40,7 @@ bindmount => $bindmount, nfstag => $nfstag, share => $v4_export_name, - server => $::clientcert, + server => $server, } } else { @@ -64,7 +65,7 @@ options => $options, nfstag => $nfstag, share => $v3_export_name, - server => $::clientcert, + server => $server, } } } From 6f807f0411274640e8b523745c971fc134ee1f26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robbert=20M=C3=BCller?= Date: Thu, 7 May 2015 10:52:50 +0200 Subject: [PATCH 2/2] add documentation for server parameter in nfs::server::export --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index b163460..1f596f0 100644 --- a/README.md +++ b/README.md @@ -401,6 +401,9 @@ Default is undef. Used to identify a catalog item for filtering by storeconfigs Default is 'localhost(ro)'. Copied directly into /etc/exports as a string, for simplicity. +#####`server` (optional) + +Default is `$::clientcert`. Used to specify a other ip/name for the client to connect to. Usefull in machines with multiple ip addresses or network interfaces #####Example ```puppet