Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
Add basic hiera support
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebryant committed Sep 29, 2015
1 parent 9479a10 commit 8d56c5b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,11 @@ Export root, where we bind mount shares, default /export
Domain setting for idmapd, must be the same across server
and clients. Default is to use $domain fact.

#####`hiera_exports` (optional)

If set, the hiera variable nfs::server::exports will be used to
construct nfs::server::export resources

#####Examples

```puppet
Expand Down
9 changes: 8 additions & 1 deletion manifests/server.pp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@
$nfs_v4_root_export_tag = undef,
#
$mountd_port = undef,
$mountd_threads = 1
$mountd_threads = 1,
#
$hiera_exports = false
) inherits nfs::params {

class { "nfs::server::${::nfs::params::osfamily}":
Expand All @@ -55,4 +57,9 @@

include nfs::server::configure

if $hiera_exports {
$exports = hiera_hash('nfs::server::exports')
create_resources(nfs::server::export, $exports)
}

}

0 comments on commit 8d56c5b

Please sign in to comment.