Skip to content

Commit

Permalink
Merge pull request #183 from broadinstitute/homedir
Browse files Browse the repository at this point in the history
Add the ability to override home directory for the created user
  • Loading branch information
wyardley authored Sep 17, 2017
2 parents 8873a55 + 034fde1 commit 28e08bf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
# (string) Puppetboard system user.
# Defaults to 'puppetboard' ($::puppetboard::params::user)
#
# [*homedir*]
# (string) Puppetboard system user's home directory.
# Defaults to undef, which will make the default home directory /home/$user
#
# [*group*]
# (string) Puppetboard system group.
# Defaults to 'puppetboard' ($::puppetboard::params::group)
Expand Down Expand Up @@ -154,6 +158,7 @@
#
class puppetboard(
$user = $::puppetboard::params::user,
Optional[String] $homedir = undef,
$group = $::puppetboard::params::group,
$groups = $::puppetboard::params::groups,
$basedir = $::puppetboard::params::basedir,
Expand Down Expand Up @@ -197,6 +202,7 @@
user { $user:
ensure => present,
shell => '/bin/bash',
home => $homedir,
managehome => true,
gid => $group,
system => true,
Expand Down

0 comments on commit 28e08bf

Please sign in to comment.