Skip to content
This repository has been archived by the owner on Sep 29, 2020. It is now read-only.

Commit

Permalink
Merge pull request haraldsk#22 from mjrider/patch-export-server
Browse files Browse the repository at this point in the history
make the name/ip of the server a config option
  • Loading branch information
dwerder committed May 10, 2015
2 parents e8fdf9e + 6f807f0 commit 8c4f7a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 4 additions & 3 deletions manifests/server/export.pp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
$atboot = false,
$options = '_netdev',
$bindmount = undef,
$nfstag = undef
$nfstag = undef,
$server = $::clientcert
) {
Expand Down Expand Up @@ -39,7 +40,7 @@
bindmount => $bindmount,
nfstag => $nfstag,
share => $v4_export_name,
server => $::clientcert,
server => $server,
}
} else {
Expand All @@ -64,7 +65,7 @@
options => $options,
nfstag => $nfstag,
share => $v3_export_name,
server => $::clientcert,
server => $server,
}
}
}

0 comments on commit 8c4f7a9

Please sign in to comment.