Skip to content

Commit

Permalink
Support more than one NIS server
Browse files Browse the repository at this point in the history
Closes Mylezeem#41.
  • Loading branch information
gothicx committed Apr 28, 2016
1 parent 127b022 commit 96a9c0e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# NIS Domain
#
# [*nisserver*]
# NIS Server
# NIS Server. Pass a string or an array.
#
# [*shadow*]
# Enable shadow password
Expand Down Expand Up @@ -277,7 +277,10 @@
$nisdomain_val = "--nisdomain=${nisdomain}"
}

if $nisserver {
if (is_array($nisserver)) {
$niss_joined = join($nisserver, ',')
$nisserver_val = "--nisserver=${niss_joined}"
} else {
$nisserver_val = "--nisserver=${nisserver}"
}

Expand Down

0 comments on commit 96a9c0e

Please sign in to comment.