Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to override home directory for the created user #183

Merged
merged 1 commit into from
Sep 17, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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