Skip to content

Commit

Permalink
Allow export clients to be Array
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz-makandra committed Jan 30, 2025
1 parent a77b94a commit 6a3505d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
9 changes: 8 additions & 1 deletion REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,14 @@ The following parameters are available in the `nfs::server::export` defined type

##### <a name="-nfs--server--export--clients"></a>`clients`

Data type: `String[1]`
Data type:

```puppet
Variant[
String[1],
Array[String[1]]
]
```

Sets the allowed clients and options for the export in the exports file.

Expand Down
5 changes: 4 additions & 1 deletion manifests/server/export.pp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@
define nfs::server::export (
String[1] $v3_export_name = $name,
String[1] $v4_export_name = regsubst($name, '.*/(.*)', '\1' ),
String[1] $clients = 'localhost(ro)',
Variant[
String[1],
Array[String[1]]
] $clients = 'localhost(ro)',
String[1] $bind = 'rbind',
# globals for this share
# propogated to storeconfigs
Expand Down

0 comments on commit 6a3505d

Please sign in to comment.